1. Home
  2. Computer Science MCQs
  3. C Programming
  4. Which value does the C standard guarantee for sizeof(char)?

Added 30 Nov -0001

Which value does the C standard guarantee for sizeof(char)?

  1. 4
  2. 8
  3. 1 Correct answer
  4. 2

Correct answer

C. 1

13 views

MCQSEXAM

Explanation

By definition sizeof(char) is exactly 1, and every other object size is a multiple of it.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More C Programming MCQs

Practise all C Programming MCQs

Similar MCQs