0
How to calculate factorial of any large value as 100 or 100+ and how to print it in C language
which data type is used in C for print or store long integers which has more than 150 digits
3 Antworten
+ 7
See this link :
https://www.sololearn.com/learn/443/?ref=app
+ 2
You can use floating-point types (long double would be your best bet) to get an approximation, but if you want to get every digit you need to implement arbitrary length integers yourself (allocate memory, ake functions to add them together, etc.).
Fortunately people have already written the necessary code. Take a look at gmplib.
+ 2
Ankit Verma you should use string data type to handle these and write your own algorithm to multiply digits of string