+ 7
Can anyone pls tell which datatype is used to display a 12 digit number in c++ program??
5 Respuestas
+ 2
int8 can display up to 2^8 - 1 = 255 3 digits
int16 can display up to 2^16 - 1 = 65535 5 digits
int32 can display up to 2^32 - 1 = 4294967295 10 digits
int64 can display up to 2^64 - 1 = 1.84 * 10^19 20 digits
so you can use int64 for your program
+ 6
thanks
+ 1
int64 or long long. type double Also have 15 digit
+ 1
long double or double.
0
Long, double ... Data types