Store value more than range of a variable | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Store value more than range of a variable

Is it possible to store values more than the range of a variable....more than 11 digit numbers without using array... In c++....

11th Feb 2017, 2:35 PM
Aman Kumar Jha
Aman Kumar Jha - avatar
2 Answers
+ 7
Use long int, or if you want more, long long int. E.g. long long int some_num; cin >> some_num; long long long int is however, literally too long and your compiler will agree with me. =^=
11th Feb 2017, 2:46 PM
Hatsy Rei
Hatsy Rei - avatar
0
sure, binary write to a file
11th Feb 2017, 2:38 PM
xum
xum - avatar