Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Why this works?

Name: Anonymous 2013-02-05 11:51


char string[3] = "asd"

string[[u]3[/u]] = '\0';

Name: Anonymous 2013-02-05 11:54

C lets you write illegal code. That doesn't mean it "works."

Name: Anonymous 2013-02-05 12:06

>>2
Why GCC doesn't give an error?

Name: Logger 2013-02-05 12:08

www.google.com/search?q="logger"&tbm=isch+typical+logger

Name: Anonymous 2013-02-05 12:16

bump

Name: Anonymous 2013-02-05 12:20

>>3
Because you don't have warnings turned on.

Name: Anonymous 2013-02-05 12:28

>>6
But I do.

Name: Anonymous 2013-02-05 13:11

>>7
Then you likely have an outdated version of GCC. Read through section J.2 in the C standard.

Don't change these.
Name: Email:
Entire Thread Thread List