diff --git a/Nimrod-for-C-programmers.md b/Nimrod-for-C-programmers.md index ba4eed0..e9faf78 100644 --- a/Nimrod-for-C-programmers.md +++ b/Nimrod-for-C-programmers.md @@ -140,6 +140,23 @@ s[11] = '!' ```C +char a = '\n'; +printf("byte %d\nA%cB\n", a, a); +``` + + +```Nimrod +let a = '\L' +echo "byte ", $int(a), "\nA" & $a & "B" +``` + +Newlines and chars. In nimrod you can't use ``\n`` as a character literal, because on the Windows platform it expands to CR+LR. So you need to specify which char to use. + + + + + +```C 9 % 8 // 1 -9 % 8 // -1 (unsigned)(-9) % (unsigned)(8) // 7