You are not logged in.

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

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

Determine Output:

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

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


Failure is the first step towards seccess.

2015-09-14 04:17:52

Advertisement
Ads By Google

Re: Determine Output:



Board footer