Tuesday, December 15, 2009

Ternary Operator

What is the output.

int main()
{
int i=10,j=20;
j = i, j?(i,j)?i:j:j;
printf("%d %d",i,j);
}
Choice:
a)10 10
b)20 20
c)10 11
d)11 10
e)10 20