Interview Questions and Answers :: Global Edge
Home > Experience Archives > Global Edge > Interview Question Set 1 > Discussion
2. Is there any error in the below program. if no then what will be the output of the below program.
main()
{
fun1();
fun2();
}
fun1()
{
static i = 5;
i--;
printf("\r\n%d\r\n",i);
}
fun2()
{
static i = 3;
i--;
printf("\r\n%d\r\n",i);
}
Answer:
4
2