+ 4

Maximum number input in C

What is the maximum whole number that can be input in C?

13th Jun 2019, 4:16 PM
Warith Vatanaplachaigoon
Warith Vatanaplachaigoon - avatar
3 Antworten
+ 4
These are defined in <limits.h>. For example, INT_MAX is at least 32767, but is 2147483647 on most systems.
13th Jun 2019, 4:31 PM
Vlad Serbu
Vlad Serbu - avatar
+ 3
Would depend on the data type.
14th Jun 2019, 3:38 AM
Sonic
Sonic - avatar
+ 2
Depends on what you’re storing it in. An unsigned 32 bit integer? Signed? I would suggest googling maximum value of an integer or whatever you are storing the number in.
13th Jun 2019, 4:26 PM
Jackson O’Donnell