Individual characters in a string are accessed as following

Options
- cout << S.at(i);
- cout << S[i];
- both a) and b)
- None


CORRECT ANSWER : both a) and b)

Discussion Board
C++ - Strings

The above both answers are correct. Individual characters in a string are accessed as cout<
Prajakta Pandit 01-30-2017 12:25 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement