here is my code
I just don't have a grasp on arrays and strings
can someone help with the syntax?
need to set up a pointer?
2 error are on each element
warning: character constant too long for its type
warning: overflow in implicit constant conversion
TIA
DougP
Code:
/* I tried this */
const char wordarray[]={'Sue','Fred','Sally','Jerry'};
/and this */
wordarray[0]='Sue';
wordarray[1]='Fred';
wordarray[2]='Sally';
wordarray[3]='Jerry';
I just don't have a grasp on arrays and strings
can someone help with the syntax?
need to set up a pointer?
2 error are on each element
warning: character constant too long for its type
warning: overflow in implicit constant conversion
TIA
DougP