Nguyễn Văn Toàn
New member
What will be the output of the following C code?
A. ++++2
B. +++++2
C. +++++
D. 2
Code:
#include<stdio.h>
main()
{
int n,i;
n=f(6);
printf("%d",n);
}
f(int x)
{
if(x==2)
return 2;
else
{
printf("+");
f(x-1);
}
}
B. +++++2
C. +++++
D. 2