Re: Moans and Pet Hates part 8
Quote:
Originally Posted by heero_yuy
Precedence of operators. If you're going to do any programming it's vital. Write that in a C statement and the computers answer will be 25.
* and / are higher than + or -
|
That's right, you can change precedence with parenthesis so
(2+5)*10 = 70
__________________
I work for VMO2 but reply here in my own right. Any help or advice is made on a best-effort basis. No comments construe any obligation on VMO2 or its employees.
|