GATEverse Practice, past papers & mock tests
GATE 2019
Programming & Data StructuresProgramminghardMCQ2 marks
Consider the following C program:
c
#include <stdio.h>
int r() {
    static int num = 7;
    return num--;
}
int main() {
    for (r(); r(); r()) {
        printf("%d ", r());
    }
    return 0;
}
Which one of the following values will be displayed on execution of the program?
Save your progress

Related Programming & Data Structures PYQs