54 views
Which functions of string include the null terminator '\0'? I know strlen() doesn't include the '\0' in giving the length, does anyone know which other functions include and which do not include?
retagged | 54 views
try sizeof() :)

+1 vote
char includeNull[] = "hii";

printf("%d", sizeof(includeNull));

OUTPUT : 4