Is there a way in C to know how many values are in an array initialized like this?
char *string_array[] = {"one", "two", "three"};
Obviously there are three strings in the array but how can I determine the size at run time?
Is there a way in C to know how many values are in an array initialized like this?
char *string_array[] = {"one", "two", "three"};
Obviously there are three strings in the array but how can I determine the size at run time?