Updated Nimrod for C programmers (markdown)

This commit is contained in:
Audun Wilhelmsen 2013-12-19 02:35:58 -08:00
parent 31785beb77
commit 30f0462f74
1 changed files with 21 additions and 0 deletions

View File

@ -28,6 +28,27 @@ Note: Code examples are not exactly one-to-one, there may be subtle differences
<th>C</th><th>Nimrod</th><th>Comment</th> <th>C</th><th>Nimrod</th><th>Comment</th>
</tr> </tr>
<tr>
<td>
```C
9 % 8
-9 % 8
(unsigned)(-9) % (unsigned)(8)
```
</td>
<td>
```Nimrod
9 mod 8
-9 mod 8
-9 %% 8
```
</td>
<td><b>Modulo operator</b>. <i>%% treats its argument as unsigned numbers</i></i>
</td>
</tr>
<tr> <tr>
<td> <td>
```C ```C