How to handle big integer in c++ like 100 factorial?

namespace mp = boost::multiprecision;
i try to use this but it does not work fine

Factorial of big numbers say 50 cannot be stored in any data type. Even long long int cannot support that because Factorial of 50 is 30414093201713378043612608166064768844377641568960512000000000000 which is greater that 10^16. So simple approach of finding factorial will not work here as you cannot store such large number. So instead you should maintain an array to store each digit of such large number.
Refer this article: