Q18
What is the range of values that can be stored in an 'int' data type in C?
A.
-32768 to 32767
B.
-2147483648 to 2147483647
AnswerC.
0 to 65535
D.
0 to 4294967295
Answer: Option B
Solution
Answer: Option B
Solution:
The range of values that can be stored in an 'int' data type in C is Option B: -2147483648 to 2147483647. An 'int' is typically represented as a 32-bit signed integer on most systems, which allows it to store values within this range.So, the correct answer is:
Option B: -2147483648 to 2147483647