You are not logged in.

#1 2015-09-17 03:49:58

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
Website

C Language Basic:

C Programming Quizzes C Language 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


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-09-17 03:49:58

Advertisement
Ads By Google

Re: C Language Basic:



Board footer