Example 4
#include <stdio.h> #include <string.h> int main(void) { char *string = "This is a string"; printf("%d\n", strlen(string)); return 0; }