I want to count size of my array (how many values/indexes are there). I've found something like this on StackOverflow
char **sentences;
while ((c = fgetc(fp)) != EOF) {
... fill the array...
}
size_t w = sizeof(sentences); // this is wrong! it returns size of pointer (memory)
It gives me "w = 4" but my array has 6 records. I need this for "for loop" to print my results (tried to count every loop in "while", but I got it in different function and I don't know to return 2 values in array [count|array of strings]).
I will be happy for any idea how to print the whole array.