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

Declare

Name: Anonymous 2010-10-05 2:46

Why is the above legal, but the bottom is not? I'm using GCC 4.5.1.

const char *Array[] = { "asdfas", "sdfasd" };
const char *Array[] = { { -8, 1, 23, 42, -42, 12 }, { 14, 23, 123, -85, 34 } };

Name: Anonymous 2010-10-05 3:30

Because chars can't be negative.
Try const char *foo[] = { {0x80, 0x81}, {0x90, 0x91} };

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