Unicode variable names: Difference between revisions
→{{header|C}}
Artoria2e5 (talk | contribs) |
Artoria2e5 (talk | contribs) |
||
Line 133:
C has limited support for Unicode in variable names since C99, where the UCS escaped form is required but raw Unicode characters are optional. See Annex D of the [http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf C standard] and [https://en.cppreference.com/w/c/language/identifier cppreference].
Most modern compilers, as of 2020, support raw Unicode identifiers, given the file is encoded properly (typically UTF-8).
<lang C>// Works for clang and GCC 10+
#include<stdio.h>
Line 144 ⟶ 143:
printf("%d",Δ);
return 0;
}</lang>▼
▲</lang>
Output:
<pre>
|