You are not logged in.

#1 2015-09-14 06:00:15

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

Expressions Executed Code:

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

Directions:
void main()
{
   int a=10, b;
   b = a++ + ++a;
   printf("%d %d %d %d", b, a++, a, ++a);
}

Question:
what will be the output when following code is executed?

Option A):
22 13 13 13
Option B):
22 11 11 11
Option C):
12 10 11 13
Option D):
22 12 12 13

Correct Answer is Option A):
22 13 13 13


Failure is the first step towards seccess.

2015-09-14 06:00:15

Advertisement
Ads By Google

Re: Expressions Executed Code:



Board footer