This document contains questions about strings in C++. It asks about the position of the first character in a string, functions that return the length of a string, whether string is a data type in C++, and the number of parameters in the substr function.
This document contains questions about strings in C++. It asks about the position of the first character in a string, functions that return the length of a string, whether string is a data type in C++, and the number of parameters in the substr function.
This document contains questions about strings in C++. It asks about the position of the first character in a string, functions that return the length of a string, whether string is a data type in C++, and the number of parameters in the substr function.
1. What is the position of the first character in a string? (3 points)
2. Which C++ function(s) return(s) the number of characters currently in a string? (3 points) 3. Is the data type string part of the C++ language? (3 points) 4. How many parameters does the substr function have? (3 points)