+ 7

Can anyone pls tell which datatype is used to display a 12 digit number in c++ program??

30th Apr 2018, 2:42 PM
Nicky
Nicky - avatar
5 Answers
+ 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 = 4ā€‹294ā€‹967ā€‹295 10 digits int64 can display up to 2^64 - 1 = 1.84 * 10^19 20 digits so you can use int64 for your program
30th Apr 2018, 2:55 PM
Ias0601
Ias0601 - avatar
+ 6
thanks
30th Apr 2018, 3:33 PM
Nicky
Nicky - avatar
+ 1
int64 or long long. type double Also have 15 digit
30th Apr 2018, 2:47 PM
sajede mirzaei
sajede mirzaei - avatar
+ 1
long double or double.
5th May 2018, 4:37 PM
Durg@šŸ˜Š
0
Long, double ... Data types
3rd Dec 2018, 2:31 PM
Me&You
Me&You - avatar