menu search
brightness_auto

Recent questions tagged recursion

Write a function that prints a string in reverse. Prototype: void _print_rev_recursion(char *s);
thumb_up_off_alt 4 like thumb_down_off_alt 0 dislike
2 answers
Question #1 What does this code print? void print(int nb) { printf("%d", nb); -- nb; if (nb > 0) { print(nb); } } int main(void) { print(4); return (0); } 4321 43210 321 3210 Question #2 What does this code print? void print(int nb) { printf("%d", nb); nb ++; ... 0); } printf("%d", nb + print(nb - 1)); nb --; return (nb); } int main(void) { print(4); return (0); } 64200 00246 01234568
thumb_up_off_alt 4 like thumb_down_off_alt 0 dislike
1 answer
What does this code print? void print(int nb) { printf("%d", nb); nb --; if (nb > 0) { print(nb); } } int main(void) { print(2); return (0); } 012 12 21 210
thumb_up_off_alt 4 like thumb_down_off_alt 0 dislike
1 answer
What is recursion in C Programming and what is recursive function in C Programming with example
thumb_up_off_alt 5 like thumb_down_off_alt 0 dislike
3 answers
To see more, click for the full list of questions or popular tags.
eForumAfrica, where you can ask questions and receive answers from other members of the community. Find the answer to your question, help others by answering their questions.

870 questions

1.1k answers

31 comments

4.0k users

...