Answer (Choose 1 answer)
(See picture)
Choose the right answer bellow:
A. 9
B. 11
C. 10
D. 12
E. 8
/* What will be the output of the following program? */
#include <stdio.h>
#include <conio.h>
int func(int t)
{ return 2*t;
}
int rec (int x)
int f;
if (x == 1) return (1);
return (2* func(x-1));
}
}
int main()
} printf ("%d", rec(3));
getch();
return 0;
}
Exit (12