GATE | GATE IT 2006 | Question 52
The following function computes the value of mCn correctly for all legal values m and n (m≥1,n≥0 and m>n)
In the above function, which of the following is the correct expression for E?
(A) (n = = 0) || (m = = 1)
(B) (n = = 0) && (m = = 1)
(C) (n = = 0) || (m = = n)
(D) (n = = 0) && (m = = n)
Explanation: Make a recursion tree of the given function recursion.
Quiz of this Question