Consider problem of calculating factorial of a number. When result is bigger than 2^32 then we will get overflow error. How can we design a program to calculate factorial of big numbers?
EDIT: assume we are using C++ language.
EDIT2: it is a duplicate question of this one