/*to use the strlen()*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>>
int main()
{
char str[80];
int l;
printf("enter the string: ");
gets(str);
l=strlen(str);
printf("length of the string=%d",l);
system ("pause");
return 0;
}
#include <stdio.h>
#include <string.h>
#include <stdlib.h>>
int main()
{
char str[80];
int l;
printf("enter the string: ");
gets(str);
l=strlen(str);
printf("length of the string=%d",l);
system ("pause");
return 0;
}
No comments:
Post a Comment