What is the output of the following code? [code] void my_recursive_function(int n) { if(n == 0) return; printf("%d ",n);

What is the output of the following code?
Code:
void my_recursive_function(int n)
{
    if(n == 0)
    return;
    printf("%d ",n);
    my_recursive_function(n-1);
}
int main()
{
    my_recursive_function(10);
    return 0;
}
A. 10
B. 1
C. 10 9 8 … 1 0
D. 10 9 8 … 1
 

Tìm kiếm

Back
Top