You are not logged in.

#1 2015-09-17 04:23:31

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()
{
      int i=-1, j=-1, k=0, l=2, m;
      m = i++ && j++ && k++ || l++;
      printf("%d %d %d %d %d", i, j, k, l, m);
}

Option A):
0 0 1 3 1
Option B):
0 0 1 2 0
Option C):
0 0 0 2 1
Option D):
0 0 1 3 0

Correct Answer is Option A):
0 0 1 3 1


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

2015-09-17 04:23:31

Advertisement
Ads By Google

Re: C Language Basic:



Board footer