char* names[]={\"A\", \"B\", \"C\"};
Is there a way to find the number of strings in the array. Like, for example in this case, it has to be 3. Ple
Making the Array Of Strings to run in a While loop with an Increment Operator, Until the loop becomes NULL, gives the Array Size:
#include char* names[]={"A", "B", "C"}; int main(){ int nameSize = 0; while(names[++nameSize]!='\0'); } for(i=0;i
Output:
A B C