MCQ2 marks
Consider the following program:
int main() int f1() int f2(int X) int f3()
{ { { {
f1(); return(1); f3(); return(5);
f2(2); } if (X==1) }
f3(); return f1();
return(0); else
} return (X*f2(X-1));
}
Which one of the following options represents the activation tree corresponding to the main function?
The four trees (A) to (D) are shown in the figure.
Single correct
Answer key coming soon
