+ 10

Which are the largest and smallest value that can be assigned to an int type variable?

31st Mar 2018, 7:42 PM
Rishu Kumar
Rishu Kumar - avatar
5 Respuestas
+ 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.
31st Mar 2018, 7:51 PM
Emma
+ 2
Niklas is wrong.
31st Mar 2018, 7:52 PM
Emma
+ 2
It depends upon compiler and system architecture.
3rd Apr 2018, 8:32 AM
Kaustuv Mandal
Kaustuv Mandal - avatar
0
Value types
3rd Apr 2018, 11:55 AM
Sam
0
it's depends upon how operating system configuration and compiler.
3rd Apr 2018, 12:42 PM
Sandeep Talware
Sandeep Talware - avatar