-
Asked by: bandaram_Sumanth on April 7, 2019, 6:34 p.m. Last updated on April 7, 2019, 6:34 p.m.
In c/c++ ,the maximum value that can be stored for integeris 10^18 . Factorial of 100 is very larger than this value , so 100! can not be stored in data type. Hence to solve this value we use ARRAYS.
Just go through this link https://www.geeksforgeeks.org/factorial-large-number/ to understand how to deal very large numbers using array.
https://www.codechef.com/wiki/tutorial-small-factorials
you may also go through this link