1. Home
  2. Computer Science MCQs
  3. C Programming
  4. In a typical 32-bit C implementation, what is sizeof(int)?

Added 30 Nov -0001

In a typical 32-bit C implementation, what is sizeof(int)?

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

Correct answer

A. 4 bytes

14 views

MCQSEXAM

Explanation

An int is normally 4 bytes (32 bits) on modern platforms; char is 1 byte and double is 8 bytes.

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