ProgrammingEasyTCS NQT · Infosys pattern

In C, sizeof(char) is:

  1. A. Always 1, by definition of the language
  2. B. Compiler-dependent, usually 4
  3. C. 2 bytes on 64-bit systems
  4. D. Equal to sizeof(int)

Correct answer: A. Always 1, by definition of the language

The C standard defines sizeof(char) as exactly 1; every other size is measured in units of char. The number of bits in that byte (CHAR_BIT) is usually 8.

More C Programming questions

Exams that ask this topic