These days I starts learning C language.
And today by coincidence I find my C compiler can recognize non-alphanumeric variable names. Which is amazing. Below is an example:
zen1@localhost:~/git_test|⇒ cat z.c
#include <stdio.h>
int main () {
char *中文变量 = "谁是你爸爸";
printf("%s\n", 中文变量);
return 0;
}
zen1@localhost:~/git_test|⇒ make z
cc z.c -o z
zen1@localhost:~/git_test|⇒ ./z
谁是你爸爸
I searched online, which seems at first C standard doesn't support this kind of variable name.
But after a bit search work, I didn't find which version of C standard starts to support it.
Thus I asked this question.