Saturday, May 22, 2010

A function in C that reads in a String of text and counts the number of characters including space in the text

The text max is 250

A function in C that reads in a String of text and counts the number of characters including space in the text
strlen(const char *s)
Reply:#include %26lt;string.h%26gt;


char str[250] = "Hellooo this is a test";


int len = strlen(str); //Len = 22

bottle palm

No comments:

Post a Comment