x=y=1; z=x++-1;
z+=-x++ + ++y;
printf(“%d\n”,x); here x=3; but
printf(“%d\n”,z); here z=?? and how??
x=y=1; z=x++-1;
z+=-x++ + ++y;
printf(“%d\n”,x); here x=3; but
printf(“%d\n”,z); here z=?? and how??
EmbLogic Research & Competency Development Labs
Phone: +91 9818467776, 8527567776, 9650467776
Email: info@emblogic.com
Copyright © EmbLogic Embedded Technologies Pvt. Ltd.
here the value of z will be equal to 0..
becoz in first eqn i.e z=x++-1 , z=0…x=2
in second eqn z=0 becoz (-x++ + ++y)=0
-2 + 2 =0
agree..