Vidyalelo
C++ Programming · Q9

Arrays and Strings in C++

Programming · C++ Programming · question 9

Q9

How do you determine the length of a C-style string in C++?

A.
Subtracting the address of the first character from the last
B.
Using the 'strlen()' function
Answer
C.
Counting the number of elements in the array
D.
None of the above

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board