Thanks .......got it...... On Tue, Aug 23, 2011 at 11:30 AM, binayakranjan das <[email protected] > wrote:
> In this case = has right to left associativity and as such < has no > associativity.but,the parsing occurs from left to right.so first (x<y) > is checked which evaluates to 0 then (0<z) which evaluates to 1 and > that is what is assigned to i. > > On Aug 23, 10:33 am, Vijay Khandar <[email protected]> wrote: > > main() > > { > > int x=10,y=10,z=5; > > int i=x<y<z; > > pf("\n%d",i); > > > > } > > > > o/p is 1 .pls any1 explain me hw is it printing? > > -- > 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.
