+ 10
Which are the largest and smallest value that can be assigned to an int type variable?
6 Answers
+ 6
Signed or unsigned? 32 or 64 bit?
+/- ((2^31) - 1) if signed on 32 bit.
+/- ((2^63) - 1) if signed on 64 bit.
0 to ((2 ^ 32) - 1) if unsigned on 32 bit.
0 to ((2 ^ 64) - 1) if unsigned on 64 bit.
+ 2
Niklas is wrong.
+ 2
It depends upon compiler and system architecture.
0
Value types
0
it's depends upon how operating system configuration and compiler.