The integer value printed by the ANSI-C program given below is ________.…
PYQ GATE 2023
The integer value printed by the ANSI-C program given below is ________.
#include<stdio.h>
int funcp(){
static int x = 1;
x++;
return x;
}
int main(){
int x,y;
x = funcp();
y = funcp()+x;
printf("%d\n", (x+y));
return 0;
}
Attempted by 250 students.
Sign up free to check your answer
Sign up freeLoading lesson…

