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
sizeof(s) / sizeof(s[0]) works no matter what type s contains.
sizeof(s) / sizeof(s[0])
s