Modulo in order of operation

This depends on the language, but in C style languages % is the same precedence as * and /. This means that if it appears in the same expression (without parentheses) the order depends on the associativity. In this case % is usually left-associative, so the operators will be executed in left-to-right order.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)