The current size of long int in my system is 4 bytes. Is it possible to increase its size? In case it is not possible how to deal with situations where we need integral data type with specified byte size. The applications include factorial, permutations, combinations etc.
Share
You may find
long long intlarger than 4 bytes. The compiler restricts the size of integer types because of how CPUs work.For arbitrary size integers you have to use special “bignum” libraries such as GMP. You can find more about the subject here: http://en.wikipedia.org/wiki/Bignum