Consider the following C function.
void convert (int n) {
if (n < 0)
printf (ā % dā, n);
else {
convert(n / 2);
printf (ā % dā, n % 2);
}
}
Which one of the following will happen when the function convert is called with any positive integer n as argument?
1
It will print the binary representation of n and terminate
2
It will print the binary representation of n in the reverse order and terminate
3
It will print the binary representation of n but will not terminate
4
It will not print anything and will not terminate
5
Question Not Attempted