Go back
This is d

This is d

General

Vote Up
Vote Down

um. A complete waste of time.

Therefore, I am not going to write a story I am just going to seize this thread so no one can continue.

😀😀😀

Vote Up
Vote Down

Originally posted by Dragon Fire
um
b

Vote Up
Vote Down

main(){
char *thread;
thread='d';
thread--;'
printf("%c",thread);
}

$ cc d.c && ./a.out
$ Thread 47932

Vote Up
Vote Down

Originally posted by Nordlys
b
What a dumb typo!

1 edit
Vote Up
Vote Down

Originally posted by Nordlys
b
This is b.

1 edit
Vote Up
Vote Down

Vote Up
Vote Down

Originally posted by Wheely
main(){
char *thread;
thread='d';
thread--;'
printf("%c",thread);
}

$ cc d.c && ./a.out
$ Thread 47932
that not complie under VC++ 🙂
lol

Vote Up
Vote Down

Originally posted by CrazyLilTing
that not complie under VC++ 🙂
lol
Edit this!

You must comply 😵

Vote Up
Vote Down

Originally posted by CrazyLilTing
that not complie under VC++ 🙂
lol
That's because there's a typo. I seem to have managed to add a ' character after the "thread--;"

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.

1 edit
Vote Up
Vote Down

Originally posted by Dragon Fire
um. A complete waste of time.

Therefore, I am not going to write a story I am just going to seize this thread so no one can continue.

😀😀😀
Carpe letter

or something like that.


edit: Carpe Tabellae