Writing FreeDOS programs in C (functions)

preview_player
Показать описание
In the previous video, we learned about flow control, where we could branch off to do different statements depending on certain conditions. And we also learned about loops. Another powerful feature in C is functions. Let's dive in!

This is part of the "Writing FreeDOS programs in C" series

Join us on Facebook

Follow us on Twitter

Consider supporting me on Patreon
Рекомендации по теме
Комментарии
Автор

Sir, please i need clarification, the recursive function is a bit confusion for me. if f(n) = f(n-1) + f(n-2) and the n will be any number after 1, i.e. 2, 3, 4, 5 etc

please explain why i cannot get the f(3) = f(3-1) + f(3-2) = 2 +1 = 3, my fib(3) doesnt add up to what you show and simply doesnt make sense to me, if the n variable should be input across the equation...please advise as i am utterly lost by this as the f(2) is ok but the rest is not. btw my math is terrible.

doublevision.productions