GATEverse Practice, past papers & mock tests
GATE 2016 · CS1 - Forenoon
Programming & Data StructuresProgrammingmediumMCQ2 marks
What will be the output of the C program?
c
void count(int n) {
    static int d = 1;
    printf("%d ", n);
    printf("%d ", d);
    d++;
    if (n > 1) count(n - 1);
    printf("%d ", d);
}
void main() {
    count(3);
}
Save your progress

Related Programming & Data Structures PYQs