Sail E0 Webinar
Question

Suppose in a hypothetical machine, the size of char is 32 bits. What would sizeof(char) return?


Options:
A .  4
B .  1
C .  Implementation dependent
D .  Machine dependent
Answer: Option B

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



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers