how could the compiler compile the following statement
z >= y >= x ? 1 : 0
how could the compiler compile the following statement
z >= y >= x ? 1 : 0
EmbLogic Research & Competency Development Labs
Phone: +91 9818467776, 8527567776, 9650467776
Email: info@emblogic.com
Copyright © EmbLogic Embedded Technologies Pvt. Ltd.
values of x=3,y=z=4;
first:z>=y–>T(1)
then :1>=3–>f(0)
o/p—->0
if we check the associativity of >= operator,its left to right.Evaluation of expression should start from z>=y which is true ,so result of z>=y is 1 ..
then 1>=x(3) will be checked which is false
hence o/p will be 0
both ur right