1. Home
  2. Computer Science MCQs
  3. C Programming
  4. Which type does the sizeof operator yield in C?

Added 30 Nov -0001

Which type does the sizeof operator yield in C?

  1. size_t, an unsigned type Correct answer
  2. int, a signed type
  3. long, a signed type
  4. unsigned char, one byte

Correct answer

A. size_t, an unsigned type

14 views

MCQSEXAM

Explanation

sizeof produces a value of type size_t, an implementation-defined unsigned integer type intended to hold object sizes.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? 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