You are not logged in.
- Topics: Active | Unanswered
#1 2015-09-14 05:53:27
C Language Operators And Expressions Program Fragment:
http://interviewquestionsanswers.org/quiz/C-Programming http://interviewquestionsanswers.org/qu … xpressions
Directions:
Consider the following program fragment, and choose the correct one:
Question:
void main()
{
int a, b = 2, c;
a = 2 * (b++);
c = 2 * (++b);
}
Option A):
a = 4, c = 8
Option B):
b = 3, c = 6
Option C):
b = 4, c = 6
Option D):
a = 3, c = 8
Correct Answer is Option A):
a = 4, c = 8
Failure is the first step towards seccess.
Offline
2015-09-14 05:53:27
- Advertisement
- Ads By Google