GATEverse Practice, past papers & mock tests
GATE 2023 · CS - Forenoon
Programming & Data StructuresProgrammingmediumNAT1 mark
The integer value printed by the ANSI-C program given below is __________.
c
#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;
}
Save your progress

Related Programming & Data Structures PYQs