Non-decimal radices/Input: Difference between revisions

m
Line 712:
{{255}}
</pre>
Note the need for %f (if you want to get an atom rather than an integer back), and double braces (it's a list of potentially several different possible result sets/interpretations), and that scanf() works best with a few literals (esp spaces but most certainly <b><i>not</i></b> radix prefixes) in the format string.
Finally note that while you can use "#DEADBEEF" (without the quotes, ie a fairly big hex number) in a source code file, the compiler will choke on "DEADBEEF", and likewise so too will scanf(), and the only way round that is to insert the right prefix at the right place.
 
=={{header|PHP}}==
7,806

edits