GATEverse Practice, past papers & mock tests
GATE 2019
Programming & Data StructuresProgrammingmediumMCQ2 marks
Consider the following C program:
c
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?
Save your progress

Related Programming & Data Structures PYQs