I want to create an array of 100 words and each word has 10 max characters but I also want to save in a variable the number of words in this array.
char array[1000];
Is this the most efficient way or can I use malloc() like this:
char *k;
k=(char *)malloc(1000 * sizeof(char));
How can I accomplish my task?
sizeof(char)?char array[100][10]; int count=0;?char array[100][11];