engineering recuitment GATE CSE 2023-24 Test Series Programming and Data Structure Programming in C Function Recursion
Consider the below written code in C language
#include
int y = 14;
int MSQ() {
return y--;
}
int main () {
int result = 1;
for(MSQ();--y;MSQ()) {
result = result + MSQ();
printf("%d\n",result);
}
return 0;
}
Which of the following is/are printed by printf statement?
1
12
2
22
3
29
4
31