You are not logged in.
- Topics: Active | Unanswered
#1 2015-09-14 05:51:32
C Language Operators And Expressions Correct Output:
http://interviewquestionsanswers.org/quiz/C-Programming http://interviewquestionsanswers.org/qu … xpressions
Directions:
Choose the correct output for the following program.
Question:
#include<stdio.h>
void main()
{
int a=10, b=11, c=13, d;
d = (a=c, b+=a, c=a+b+c);
printf("%d %d %d %d", d, a, b, c);
}
Option A):
50, 13, 24, 13
Option B):
50, 13, 11, 13
Option C):
13, 10, 24, 50
Option D):
50, 13, 24, 50
Correct Answer is Option D):
50, 13, 24, 50
Failure is the first step towards seccess.
Offline
2015-09-14 05:51:32
- Advertisement
- Ads By Google