Examveda
Examveda

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

C. Counting the number of elements in the array

D. None of the above

Answer: Option B


Join The Discussion

Related Questions on Arrays and Strings in C plus plus