+ 1

How can we use numbers with very very long digits (about 100digits)in c?

14th Feb 2018, 3:49 AM
Kimiya Nayyeri
Kimiya Nayyeri - avatar
6 Answers
+ 5
Array of integers each holding -9999 to 9999. With same functions Petr mentioned.
14th Feb 2018, 4:39 AM
John Wells
John Wells - avatar
+ 6
You can actually try it for yourself. My compiler tells me "long long long" is literally too long. :>
14th Feb 2018, 10:20 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
long long is the biggest integer requiring 64 bits minimum. However, that is currently the maximum supported by any processor so it is also the current maximum.
14th Feb 2018, 6:52 AM
John Wells
John Wells - avatar
+ 1
As strings. If you want to be able to add, subtract our multiply it, you should write such functions.
14th Feb 2018, 4:23 AM
Petr Leliaev
Petr Leliaev - avatar
+ 1
can we write signed long long long long long integer?
14th Feb 2018, 6:21 AM
Kimiya Nayyeri
Kimiya Nayyeri - avatar
+ 1
what do you mean by array.i don't know array in C
14th Feb 2018, 10:35 AM
Kimiya Nayyeri
Kimiya Nayyeri - avatar