Question
What will be the output of the following code?```finclude<stdio.h>void recursion(int n)l if(n -- 0) return; printf("$d",n): recursion(n-2);lint main()I recursion (6); return 0;l```A. 642B. 654321C. 662D. 6420
Step 1
There appears to be some typos in the code. The curly braces are represented as 'l' and 'I', and there's a typo in the include statement. Let me correct these and analyze the proper code: ```c #include<stdio.h> void recursion(int n) { if(n == 0) Show more…
Show all steps
Your feedback will help us improve your experience
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD