string initialization

Massimiliano Cialdi
Wed Mar 24 13:21:00 GMT 2004

I want to initialize staticly a string like this:

if I define:
char *str[] = {
"hi" };

can I be sure that the 3 strings are placed consecutively? 
In this way I declase an array of strings. There is another way to avoid


Massimiliano Cialdi

More information about the Gcc-help mailing list