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 4:26

Because you're trying to assign to a const char * with an initializer list. What exactly are you trying to do?

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