1.

Which character is used to terminate the string?(a) $(b) Null(c) Empty(d) @This question was posed to me during an interview.Enquiry is from String Characters topic in division Strings, Streams & Numerics in C++ of C++

Answer»

Right answer is (b) Null

The best EXPLANATION: A STRING of CHARACTERS is stored in successive elements of a character ARRAY are TERMINATED by the NULL character.



Discussion

No Comment Found

Related InterviewSolutions