Q282
What will be the output for following code? #include int func(int x, int y) if (y == 0) return 1; else if (y%2 == 0) return func(x, y/2)*func(x, y/2); else return x*func(x, y/2)*func(x, y/2); int main() int x = 2; int y = 3; printf("%d", func(x, y)); return 0;
A.
9
B.
6
C.
8
AnswerD.
5
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board