C++ Type Checking Question:
Download Questions PDF

What constant defined in <climits> header returns the number of bits in a char?
a) CHAR_SIZE
b) SIZE_CHAR
c) BIT_CHAR
d) CHAR_BIT

C++ Type Checking Interview Question
C++ Type Checking Interview Question

Answer:

d) CHAR_BIT

Download C++ Type Checking Interview Questions And Answers PDF

Previous QuestionNext Question
Suppose in a hypothetical machine, the size of char is 32 bits. What would sizeof(char) return?
a) 4
b) 1
c) Implementation dependent
d) Machine dependent
What is the size of wchar_t in C++?
a) 2
b) 4
c) 2 or 4
d) based on the number of bits in the system