Length of s2 should be 14

since the computer would automatically add null character to the string, shouldn’t the length of s2 be 14 including the null character.
s2 is “Another Way !”

Hi @tusharnitharwal

strlen: Returns the length of the given byte string not including null terminator;

char s[]=“help”; strlen(s) should return 4.

sizeof: Returns the length of the given byte string, include null terminator;

char s[]=“help”; sizeof(s) should return 5.