Home » C++ Programming » Data Types » Question
  1. Suppose in a hypothetical machine, the size of char is 32 bits. What would sizeof(char) return?
    1. 1
    2. Implementation dependent
    3. Machine dependent
    4. 4
    5. None of these
Correct Option: A

The standard does NOT require a char to be 8-bits, but does require that sizeof(char) return 1.



Your comments will be displayed only after manual approval.