Don’t Trust Operator Precedence

Consider the following code:

the statement x—y can be parsed as:

or

The first one is the correct so It will print

 

Conclusion

Don’t trust operator precedence , it creates hard to read code , always use parentheses