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