1.

The size_t integer type in C++ is?(a) Unsigned integer of at least 64 bits(b) Signed integer of at least 16 bits(c) Unsigned integer of at least 16 bits(d) Signed integer of at least 64 bitsThis question was addressed to me in final exam.The question is from Integer Types in portion Types, Pointers, Arrays & Structures in C++ of C++

Answer»

The correct answer is (c) Unsigned INTEGER of at least 16 bits

Explanation: The size_t TYPE is used to represent the size of an OBJECT. Hence, it’s always unsigned. According to the language SPECIFICATION, it is at least 16 bits.



Discussion

No Comment Found

Related InterviewSolutions