truebs
Full Member level 5
Hi,
We all know that for x=2
y = ++x ; y becomes 3
y = x++ ; y becomes 2 and x becomes 3 in both cases.
But as per rule of precendance... ++ operator has higher priority than = operator.
Then as per precendance .. y should become 3 in both the cases owing to higher precendance to ++ than =.
But it doesn't happen , why ? What is the possible bug or behavior of compiler ?
Thanks ..
We all know that for x=2
y = ++x ; y becomes 3
y = x++ ; y becomes 2 and x becomes 3 in both cases.
But as per rule of precendance... ++ operator has higher priority than = operator.
Then as per precendance .. y should become 3 in both the cases owing to higher precendance to ++ than =.
But it doesn't happen , why ? What is the possible bug or behavior of compiler ?
Thanks ..