Possible Duplicate:
char [length] initialization and dealing with it
I have:
char d[7];
What is wrong regarding following:
At this moment no memory allocated for variable d. Now I’m going to initialize it:
d="bbbbbb";
After this type initialization, there would be no need to free memory; it will be done automatically.
How to know was char[] initialized? I need a pattern like
if (filled(d)){..}
How to fill char[] with one kind of characters?
OK if you want to fill your char with ‘b’ character you CAN do it this way