MCQs > IT & Programming > C++ > Which is the proper way to use the .substr() function on the following string to get the word 'World' in the following code? string aString = 'Hello World!';

C++ MCQs

Which is the proper way to use the .substr() function on the following string to get the word "World" in the following code? string aString = "Hello World!";

Answer

Correct Answer: aString.substr(6,5);

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it