What is the size of an int data type?

Category: QuestionsWhat is the size of an int data type?
Editor">Editor Staff asked 11 months ago

What is the size of an int data type?
 
(a) 4 Bytes
 
(b) 8 Bytes
 
(c) Depends on the system/compiler
 
(d) Cannot be determined
 
I have been asked this question during an online interview.
 
Question is taken from Data Types and Sizes in section Data Types, Operators and Expressions in C of C
NCERT Solutions for Subject Computer science (C Programming) Select the correct answer from above options 
Interview Questions and Answers, Database Interview Questions and Answers for Freshers and Experience

1 Answers
Editor">Editor Staff answered 11 months ago

Right answer is (c) Depends on the system/compiler
 
Explanation: The size of the data types depend on the system.