is that char null terminator is including in the length count

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.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)