Teaching Rajasthan Basic Computer Instructor 2021 Mock Test Programming and Data Structure Programming in C Scope of a Variable
What will be the output of the following code:
#include
int ftwo();
int main()
{
printf("%d", ftwo());
printf("\n");
}
int x = 10;
int fone()
{
return x;
}
int ftwo()
{
int x = 11;
return fone();
}
1
10
2
1011
3
11
4
1110