InterviewSolution
Saved Bookmarks
| 1. |
What is string objects in C++?(a) Stream of alphabets(b) A stream of well-defined characters(c) Stream of characters(d) A stream of characters terminated by \0I have been asked this question in an interview.The doubt is from String topic in portion Source Files, Classes and Operator Overloading in C++ of C++ |
|
Answer» CORRECT answer is (b) A STREAM of well-defined characters To explain: String is defined as STREAMS of characters, not necessarily terminated by \0. Also, a string can contain characters other than ALPHABETS. |
|