diff --git a/Nimrod-for-C-programmers.md b/Nimrod-for-C-programmers.md index 644ee5f..a51cb90 100644 --- a/Nimrod-for-C-programmers.md +++ b/Nimrod-for-C-programmers.md @@ -32,16 +32,16 @@ Note: Code examples are not exactly one-to-one, there may be subtle differences ```C -9 % 8 --9 % 8 -(unsigned)(-9) % (unsigned)(8) +9 % 8 // 1 +-9 % 8 // -1 +(unsigned)(-9) % (unsigned)(8) // 7 ``` ```Nimrod -9 mod 8 --9 mod 8 --9 %% 8 +9 mod 8 # 1 +-9 mod 8 # -1 +-9 %% 8 # 7 ``` Modulo operator. %% treats its argument as unsigned numbers