Given n > -1

What does following code do?

void fun(int n)

{

  if(n == 0)

    return;

  fun(n/2);

  printf("%d", n%2);

}

1
The function fun() prints binary equivalent of n
2
The function fun() prints 0
3
The function fun() prints binary equivalent of n in reverse order
4
None of the above

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation