Jump to content

Unicode variable names: Difference between revisions

Line 135:
Most modern compilers, as of 2020, support Unicode identifiers, given the file is encoded properly (typically UTF-8).
 
'''IMPORTANT''' : This implementation works, but it has been tested with clang 3.8.0, in order for the code to compile and run properly you must ensure that the file is saved in Unicode and you are using the correct compiler. Not doing either one of them will result in errors.
<lang C>
// Works for clang and GCC 10+
#include<stdio.h>
 
int main() {
int Δ = 1;
Δ++;
printf("%d",Δ);
return 0;
}
17

edits

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