Storing big integers in c++

Do we have any library in c++ to store big integers like factorial of 500?

Hi sharad
You can use the boost multi-precision library. In fact, it already has an example of a factorial program that can support output up to 128 bits, though extending it further is pretty trivial.
You can also use a bigint or bignum implementation. There are some libraries out there like this: http://gmplib.org/

Hope it helps
Give a like if you are satisfied :slight_smile: