I am doing a program where I have to find factorial of a large number, like of 100 whose answer is of 158 digits and I was suggested to use BigInteger in C. What is BigInteger and how can i use it.
Asked
Active
Viewed 136 times
-5
-
@JackV It is not answered even their. If you know the solution then please tell me. – Manish Kumar Jul 22 '15 at 01:27
-
That question provides several pointers to big-integer libraries, etc. In what sense is that insufficient? – Oliver Charlesworth Jul 22 '15 at 01:32
-
http://stackoverflow.com/a/17039284/971127 – BLUEPIXY Jul 22 '15 at 01:52
-
http://stackoverflow.com/a/28035571/971127 – BLUEPIXY Jul 22 '15 at 01:57
1 Answers
0
BigInteger is a class in the standard Java libraries. For C, you want to use GMP.

dbush
- 205,898
- 23
- 218
- 273
-
-
I haven't used it much myself, however there is plenty of documentation at the provided link, particularly the chapter on [integer functions](https://gmplib.org/manual/Integer-Functions.html). – dbush Jul 22 '15 at 01:49