initializing string arrays

Programming, for all ages and all languages.
Post Reply
Adek336

initializing string arrays

Post 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
Adek336

Re:initializing string arrays

Post by Adek336 »

nm, it works like char except_names[0x20][0x20] = {"hello", "hello", ... };

Bye
Post Reply