GATE Computer Science (CS) 2019 Solved Papers

© examsiri.com
Question : 36 of 65
 
Marks: +1, -0
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?
Go to Question: