Wednesday, March 24, 2010

68

int main()
{
int i=0,j=0;
int k=2;
(i,j)=k;
printf("%d %d %d", i,j,k);
return 0;
}


Output:
0     2     2
Note:
gcc compiler will show one warning.
Logic:
We know that associativity of brackets always be left to right(i.e <-- in this direction). so j=k is assigned . The statement is equal to i,j=k;

0 comments:

Post a Comment