Data type for big numbers

is there any data type fir storing 20 digit integer ?

In c++, There is no Datatype available to store 20 digit Number. But there is boost Library present which you can use but it is not recommend. Instead of that you can use String or int Array to store such type of Larger Number.

You can use “unsigned long long int” to store positive 20 digit integer within the specified limit:

range: 0 to 18446744073709551615

Hope this would help you.

can you plzz brief me about the boost library?

ca u plzz brief me about the boost library?

@ynikhil1999 Hey, Nikhil happy to see that you are curious to exploring. First of all Boost is Library and is not datatype. You can install that in your compiler by copying some of the file. But It May or may not support on online Compiler so that’s why i was not recommending before. But You can learn at above Link.

Boost Library : https://www.geeksforgeeks.org/advanced-c-boost-library/

If you are not understanding this then surely i will help.

1 Like

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.