You are not logged in.

#1 2015-09-14 04:17:50

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

Determine Output:

C Programming Quizzes C Language Operators And Expressions

Directions:
Determine output:

Question:
void main()
{
      int i=0, j=1, k=2, m;
      m = i++ || j++ || k++;
      printf("%d %d %d %d", m, i, j, k);
}

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

Correct Answer is Option A):
1 1 2 2


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

2015-09-14 04:17:50

Advertisement
Ads By Google

Re: Determine Output:



\n

Board footer