Page 1 of 1

initializing string arrays

Posted: Thu Sep 25, 2003 5:35 am
by Adek336
hello, I wanted to have an array of 0x20 strings of maxsize 0x20. I also wanted to have them initialized from start, and here a problem arises:
char except_names[0x20] [0x20] = ("hello", "hello"); doesn't seem to work.

I would be very grateful for any replies.

Cheers,
Adrian

Re:initializing string arrays

Posted: Thu Sep 25, 2003 5:41 am
by Adek336
nm, it works like char except_names[0x20][0x20] = {"hello", "hello", ... };

Bye