Example 4

 

#include <stdio.h>
#include <string.h>

int main(void)
{
   char *string = "This is a string";

   printf("%d\n", strlen(string));
   return 0;
}

Hosted by www.Geocities.ws

1