1.

The size of an object or a type can be determined using which operator?(a) malloc(b) sizeof(c) malloc(d) callocI got this question in unit test.My question is taken from Sizes topic in portion Types, Pointers, Arrays & Structures in C++ of C++

Answer» RIGHT choice is (b) sizeof

For explanation: The sizeof operator gives the SIZE of the object or type.


Discussion

No Comment Found

Related InterviewSolutions