I want to find the length of this :
char *s[]={\"s\",\"a\",\"b\"};
it should count 4 with the /0 but the strlen or sizeof(s)/sizeof(char) gives
There is no direct way to determine the length of an array in C. Arrays in C are represented by a continuous block in a memory.
You must keep the length of the array as a separate value.