#include <stdio.h>
#include<conio.h>
#include<string.h>
int main()
{
char s[100],i;
int l;
clrscr();
printf("\n\n program to calculate length of string using strlen");
printf("\n Enter a string: ");
scanf("%s",s);
l = strlen(s);
printf("\n Length of string: %d",l);
getch();
}
No comments:
Post a Comment
Guys if you think something is wrong or should be edit than please do comment.