Unexpected output for large inputs in fibonacci program

I understood as to why the program is not working when we’re inputting the same value as the size of the array. The array will go out of bound but when I entered another value like 98 I’m getting a negative output. Why is this happening?

Fibonacci 98th is very large value it overflows the long long int too. That’s why you are getting negative output.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.