boost learn study
Friday, March 28, 2014
strlen() - String Handling Functions
/*Write a program to print the length of String*/ #include
#include
#include
void main() { char name[20]; int len=0; clrscr(); printf("Enter the Name:\n"); scanf("%s",name); len = strlen(name); printf("\n Length of String=%d",len getch(); }
Output is as :
Enter the Name
Laura
Length of String=5
Read more �
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment