Q. 47 Consider the following program:
intf(int*p,intn){if(n <= 1)return0;elsereturnmax(f(p+1,n-1),p[0]-p[1]);}intmain(){inta[] = {3,5,2,6,4};printf("%d", f(a,5));}
Note: max(x,y) returns the maximum of x and y. The value printed by this program is
(A) 2
(B) 3
(C) 4
(D) 5
Answer: (B)
Explanation:















