C++ Type Checking Question:
Download Questions PDF

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

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

Answer:

b) 1

Download C++ Type Checking Interview Questions And Answers PDF

Previous QuestionNext Question
Is the size of character literals different in C and C++?
a) Implementation defined
b) Can't say
c) Yes, they are different
d) No, they are not different
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