output is 10 40 1 1 10 because x = x*(3+2) = 2 * (3+2) 40 because x = x*4 = 10 * 4 1 because x = y == z which is x = 4 == 4 which become x = 1 1 becase value of x is not changed in 4th expression.
On Wed, May 25, 2011 at 3:35 PM, sourabh jakhar <[email protected]>wrote: > > #include<stdio.h> > #include<stdio.h> > #include<conio.h> > #define PRINTX printf("%d\n",x) > main() > { > int x=2,y,z; > x*=3 + 2; PRINTX; > x*= y = z = 4; PRINTX; > x = y == z; PRINTX; > x == ( y = z ); PRINTX; > getch(); > } > can anyone explain the output > > -- > SOURABH JAKHAR,(CSE)(3 year) > > > The Law of Win says, "Let's not do it your way or my way; let's do it the > best way." > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Cheers Naveen Kumar -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
