In a typical 32-bit C implementation, what is sizeof(int)?
-
A
4 bytes
Correct answer
-
B
2 bytes
-
C
8 bytes
-
D
1 byte
Correct answer
A. 4 bytes
14 views
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
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ