Hi,
If you initialize an array of strings like:Each element can be accessed by index. But is there a way to make an array that has its contents entered by the user accessable by index, for instance, if the user entered a sentence, could each word be accessed by index? like:Code:char string[4][10] = {"monday", "tuesday", "wednsday", "thursday"}Any help would be appreciated.Code:char string[21]; gets(string); "today is thursday" 0 1 2 printf("%s" , string[2]);