- Code: Select all Expand view
- #include <stdio.h>
#define TEST "Ð"
int main()
{
printf( "%s\n", TEST );
printf( "%d\n", *TEST );
return 0;
}
prints:
- Code: Select all Expand view
- ?
63
While this modified sample:
- Code: Select all Expand view
- #include <stdio.h>
#define TEST "Ð"
//Ð
int main()
{
printf( "%s\n", TEST );
printf( "%d\n", *TEST );
return 0;
}
prints the correct answer that is:
- Code: Select all Expand view
- ðÉ
-48
I tried all sort of switches but nothing worked. Any ideas? Even a workaroud would be much appreciated.