Q23
What is the correct way to access the fifth character in a string variable named text in C++?
A.
text(5)
B.
text[5]
C.
text.charAt(5)
D.
text[4]
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board