You are not logged in.

#1 2015-09-17 03:50:00

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

C Language Basic:

http://interviewquestionsanswers.org/quiz/C-Programming http://interviewquestionsanswers.org/qu … uage-Basic

Directions:
Determine Output:

Question:
void main()
{
      static int var = 5;
      printf("%d ", var--);
      if(var)
            main();
}

Option A):
5 5 5 5 5
Option B):
None
Option C):
Infinite Loop
Option D):
5 4 3 2 1

Correct Answer is Option D):
5 4 3 2 1


Failure is the first step towards seccess.

2015-09-17 03:50:00

Advertisement
Ads By Google

Re: C Language Basic:



Board footer