Fun fact: you can use the zero-width space (U+200B ) for identifiers (at least in Visual Studio).
The following is a working program (if the copy/paste works correctly)
#include <stdio.h>
#define 4+ // #define using zero-width space as identifier
int main()
{
int aa = 1, aa = 2, aa = 3; // These are all different.
printf("%d %d %d %d", aa, aa, aa, 0); // Use here to print "1 2 3 4"
return 0;
}
View all comments
Show parent comment
7
u/cearnicus Dec 11 '18
Fun fact: you can use the zero-width space (U+200B ) for identifiers (at least in Visual Studio).
The following is a working program (if the copy/paste works correctly)