what is the program to add two number using recursion in C?
Shathana. S.R. Answered question September 7, 2023
- Suppose the user entered 20.
- Initially, addNumbers() is called from main() with 20 passed as an argument.
- The number 20 is added to the result of addNumbers(19) .
- In the next function call from addNumbers() to addNumbers() , 19 is passed which is added to the result of addNumbers(18) .
Shathana. S.R. Answered question September 7, 2023