Tuesday 26 March 2013

i=i&=j&&10;


    main()
{
         int i=5,j=10;
    i=i&=j&&10;
         printf("%d %d",i,j);
}

Answer:
1 10
Explanation:
The expression can be written as i=(i&=(j&&10)); The inner expression (j&&10) evaluates to 1 because j==10. i is 5. i = 5&1 is 1. Hence the result.

 Blog Author: Vijay Kumar

No comments:

Post a Comment