#include int main(int argc, char *argv[]) { char s[]=\"help\"; printf(\"%d\",strlen(s)); }
Why the above output is 4, isn
strlen counts the elements until it reaches the null character, in which case it will stop counting. It won't include it with the length.
strlen