the output should be blank. because comma is a operator in c which associates from left to right. so each of a ,b,x,y is evaluated and y is the last one to be evaluated and its value(0) is returned as the value of the expression.so the if condition returns false. i dont understand how u got that output !
On Thu, Aug 11, 2011 at 4:29 PM, Prem Krishna Chettri <[email protected]>wrote: > Yep, > > Ideally, if() statement evaluates the last push stack value from the > stack and apparently here the last value evaluates to be 0 resulting the > failure of the if condition. > > Please verify the compilation. :) > > Prem > > > On Thu, Aug 11, 2011 at 4:21 PM, hary rathor <[email protected]>wrote: > >> print nothing , your output is wrong >> >> -- >> 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. >> > > -- > 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. > -- 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.
