You are not logged in.

#1 2015-09-17 04:22:20

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

C Language Basic Quiz:

C Programming Quizzes Multiple Choice set of C Language Basic questions

Directions:
Determine Output:

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

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

Correct Answer is Option A):
0 0 0 0


Failure is the first step towards seccess.

2015-09-17 04:22:20

Advertisement
Ads By Google

Re: C Language Basic Quiz:



Board footer