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
Answer:A
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
Explanation: In C++, sizeof(‘a’) == sizeof(char) == 1. In C however, sizeof(‘a’) == sizeof(int). 9. Suppose in a hypothetical machine, the size of char is 32 bits. What would sizeof(char) return?