EmbLogic's Blog

E-14 pre-increment and logical operators

Initializing x,y,z=1 and after applying operation ++x||++y&&++z; The values when printed gives: x=2; y=1; and z=1;
It increments  the value of x but does not increment the values of y and z.  can anyone please explain why?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>