Anonymous user
Character codes: Difference between revisions
Forth
(→{{header|ALGOL 68}}: Ada solution added) |
(Forth) |
||
Line 61:
<lisp>(princ (char-code #\a)) ; prints "97"
(princ (code-char 97)) ; prints "a"</lisp>
=={{header|Forth}}==
As with C, characters are just integers on the stack which are treated as ASCII.
char a
dup . \ 97
emit \ a
=={{header|Haskell}}==
|