Welcome..!!

Please visit http://csprograms.in/ for more Computer Science programs.

Showing posts with label length of string. Show all posts
Showing posts with label length of string. Show all posts

Wednesday, 14 March 2012

19. C++ program to find the length of a string.


# include <iostream>
# include <string>

int main()

{
char s1[25];
cout << “Enter the string:”;

cin > > str1;
cout < < “Strlen(str1): “< < strlen(str1) < < end1;
return 0;
}