Is it even possible to store the 100th Fibonacci number (beginning with the numbers 1 and 1) into a variable? I know the number is pretty huge, and wondered if there is a data type to hold a number that big.
Compile and run this program on your implementation; if the second number printed out is smaller than the first one, you would need to use a user defined big integer type. If an approximate value is adequate, a floating point type can be used.
Taking logarithm of the 100th fibonacci number (354224848179261915075) in the base 2 gives 68.2632273156
Hence, 69 bits are required to store this number.
It seems you have to use two long longs to store this number.