Jump to content

Character codes: Difference between revisions

m
→‎{{header|Phix}}: added personal tag
No edit summary
m (→‎{{header|Phix}}: added personal tag)
Line 1,748:
{{libheader|Phix/basics}}
Characters and their ascii codes are one and the same. (See also printf, %d / %s / %c.)
<!--<syntaxhighlight lang="phix">(phixonline)-->
 
<span style="color: #0000FF;">?</span><span style="color: #008000;">'A'</span>
<!--<syntaxhighlight lang="phix">-->
<span style="color: #7060A8;">puts</span><span style="color: #0000FF;">?(</span><span style="color: #008000000000;">1</span><span style="color: #0000FF;">,</span><span style="color: #000000;">65</span><span style="color: #0000FF;">'A')</span>
<span style="color: #7060A8;">puts<span style="color: #0000FF;">(<span style="color: #000000;">1<span style="color: #0000FF;">,<span style="color: #000000;">65<span style="color: #0000FF;">)
<!--</syntaxhighlight>-->
 
{{out}}
<pre>
Line 1,759 ⟶ 1,757:
A
</pre>
 
=={{header|Phixmonti}}==
<syntaxhighlight lang="phixmonti">'a' print nl
7,818

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.