C File =>
/* Write a program to calculate length of string using standard library function. */
#include<stdio.h>
#include<string.h>
int main()
{
char s[30];
printf("\n Enter String : ");
scanf("%s",s);
printf("\n Length of string is : %d",strlen(s));
return 0;
}
Comments
Post a Comment
Please do not enter any spam link in message.