#include int main(int argc, char *argv[]) { char s[]=\"help\"; printf(\"%d\",strlen(s)); }
Why the above output is 4, isn
It's 4.
strlen() counts the number of characters up to, but not including, the first char with a value of 0 - the nul terminator.