(expression1) < (expression2) && (expression3) < (expression4)
For such type of expressions , you must have a sound knowledge of precedence table.
But this is an easiest example.
We know that '<' operator has higher precedence than '&&' .
Hence first of all '<' will be executed.
But there is not surety whether expression1 will be executed first or expression 2.
The result of first '<' will decide whether expression after '&&' will get executed or not.
If the result of first '<' is false the second '<' will not get executed. Else the same procedure will be followed for expression after '&&'
For such type of expressions , you must have a sound knowledge of precedence table.
But this is an easiest example.
We know that '<' operator has higher precedence than '&&' .
Hence first of all '<' will be executed.
But there is not surety whether expression1 will be executed first or expression 2.
The result of first '<' will decide whether expression after '&&' will get executed or not.
If the result of first '<' is false the second '<' will not get executed. Else the same procedure will be followed for expression after '&&'
GUYS IF YOU REALLY LIKE THE POSTS OF THIS BLOG THEN PLEASE JOIN OUR BLOG.
AND HELP US TO PUT MORE POSTS LIKE THIS.
PLEASE HIT THE LIKE BUTTON ON RIGHT HAND SIDE.
0 comments: