The integer value printed by the ANSI-C program given below is ________
c
Programming in CFunctions, Parameter Passing, Scope Rules, RecursionNAT1 markMedium
1#include<stdio.h>
2int funcp( ) {
3 static int x = 1;
4 x++;
5 return x;
6}
7int main( ) {
8 int x, y;
9 x = funcp( );
10 y = funcp( ) + x;
11 printf("%d\n", (x + y));
12 return 0;
13}
14A GATE question every morning
One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.