+ 1
Recursion used but not working in c language what to do.... Its not running..... Although i checked on google but not working...
4 Antworten
+ 5
You calculate
fibonacci(i);
but at the start, `i` is 0. So we recurse into `fibonacci(-2)`, which recurses into `fibonacci(-4)`, and so on... We loop forever.
Try setting `i` to 1. Also you should probably get rid of the variable `c`.
+ 5
Just for future reference, you ideally should specify language involved in question tags. Use of words relevant to question topic helps the search feature to find questions having similar topics by checking tag similarities. By using relevant tags you help others who searches for such topic in future for learning 👍
+ 1
Schindlabua thx bro i got my mistake
+ 1
Ipang ok.. 👍👍