GATE | GATE CS 2008 | Question 74
Consider the following C program
The running time of f1(n) and f2(n) are
(A) (n) and (n)
(B) (2^n) and (n)
(C) (n) and (2^n)
(D) (2^n) and (2^n)
Explanation: See Question 3 of https://www.geeksforgeeks.org/c-language-set-5/
Quiz of this Question
Attention reader! Don’t stop learning now. Practice GATE exam well before the actual exam with the subject-wise and overall quizzes available in GATE Test Series Course.
Learn all GATE CS concepts with Free Live Classes on our youtube channel.