C Program GATE 2019-3

C Program : GATE 2019

Consider the following C program:

#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 programs?


Share:

Post a Comment

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.