Discussion :: Operators and Expressions
-
Choose the correct output for the following program.
#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);
}
Answer : Option B
Explanation :
For any comma separated expression the outcome is the right most part.
Be The First To Comment