Question: Can we use the tail-call optimization in this function? If no, explain why not. If yes, what is the difference in the number of executed
Can we use the tail-call optimization in this function? If no, explain why not. If yes, what is the difference in the number of executed instructions in f with and without the optimization?
int f(int a, int b, int c, int d){ return g(g(a,b),c+d); }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
