#include <stdio.h> #include <conio.h> int reverse(int); void main() { int n = 5; reverse(n); getch(); } int reverse(int n) { if(n == 0) return

KellyPoima

New member
#include <stdio.h>
#include <conio.h>
int reverse(int);
void main()
{
int n = 5;
reverse(n);
getch();
}
int reverse(int n)
{
if(n == 0)
return 0;
else
printf("%d", n);
reverse(n--);
}[/CODE]
What will be the output of the program?
A. 543210
B. 54321
C. 12345
D. Infinite loop
Chọn D là đáp án đúng
 

Tìm kiếm

Back
Top