[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.
Interview Questions and Answers :: Global Edge

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

Post Your Answer Here:      Public      Private

Rate This: +2 -0
Report     

Post Your Reply Here:     

Report Error

Report Error

Please Login First Click Here