1.

What is the difference between unsigned int length() and unsigned int size()?(a) Returns a different value(b) They are same(c) Returns a different value but they are same(d) Returns a lengthI have been asked this question in homework.This interesting question is from Basic String topic in division Strings, Streams & Numerics in C++ of C++

Answer»

Correct ANSWER is (b) They are same

To explain I WOULD say: Both of them will return the LENGTH of strings in the same NOTATIONS.



Discussion

No Comment Found

Related InterviewSolutions