Hello everyone,
I just bought Alex' eBook, and i noticed somethign that i thought was wrong.
In the book, there is this if statement:
Alex said that this will first check if x != 0, and then if 10 / x smaller is than 2. But i've read somewhere that c++ code is read from right to left. so then the first statement to be checked would be if 10 / x < 2.Code:if ( x != 0 && 10 / x < 2 ){ cout << "10 / x is less than 2"; }
So now i'm curious what is the truth XD
Thanks for any replies!