Jump to content

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}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.