Over 4,294,967,296 in C?

Possible duplicate:
"BigInt" in C?

Hey there! I calculate Fibonacci numbers in C to 46 using unsigned int , but I cannot calculate F (47) because it is long. So, is there a way to get numbers greater than 2 ^ 32 in C? NB: I am using a 32-bit processor.

+3
source share
5 answers

(unsigned) is long , but it is also limited (to 2 ^ 64). If this is not enough, you need to look for the BigInt library .

+11
source
#include <stdint.h>

uint64_t my64bit;
+2
source

64- ( C ) BigNum, GMP.

BigNum , GMP .

+1

, R.. , bigints. , , . .

+1

, , ​​ .

0

Source: https://habr.com/ru/post/1758608/


All Articles