fix: precedence and assignment operator questions

This commit is contained in:
Inanc Gumus
2018-11-07 11:29:09 +03:00
parent a7e791e8fe
commit 160f9f38e6
4 changed files with 11 additions and 4 deletions

View File

@ -89,8 +89,8 @@ var n int
## Which code below equals to `x = x % 2`?
1. `x = x / 2`
2. `x =% x`
3. `x %= x` *CORRECT*
2. `x =% 2`
3. `x %= 2` *CORRECT*
> **1:** This is a division. You need to use the remainder operator.
>