Consider the following C function int fun(int n) { int i, j; for(i=1; i<=n;…
PYQ GATE 2017
Consider the following C function
int fun(int n) { int i, j; for(i=1; i<=n; i++) { for (j=1; j<n; j+=i) { printf("%d %d", i, j); } } }
Time complexity of in terms of notation is
- A.
- B.
- C.
- D.
Attempted by 423 students.
Sign up free to check your answer
Sign up freeLoading lesson…

