The integer value printed by the ANSI-C program given below is ________.…
GATE · 2023 · CS · Computer Science & IT
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 203 students.
Sign up free to check your answer
Sign up freeLoading lesson…