int fn(int a, int b) { if (b==0) return 0; if (b==1) return a; return a+fn(a, b-1); }
Answer & ExplanationOption: [B]
The above function is a recursive function. The function will return a+b where a and b are non-negative integers
Article and Schedule Quiz | Start Test! |