Originally posted by Wheelythat not complie under VC++ 🙂
main(){
char *thread;
thread='d';
thread--;'
printf("%c",thread);
}
$ cc d.c && ./a.out
$ Thread 47932
lol
Originally posted by CrazyLilTingThat's because there's a typo. I seem to have managed to add a ' character after the "thread--;"
that not complie under VC++ 🙂
lol
Also, the char doesn't need to be declared as a pointer but it won't make any difference, you'll just get a warning. However, if you are a purist, I would remove the "*".
It wont be that exciting though.