C PROGRAMMING
C program to find length of a string
#include <stdio.h>
#include <string.h>
main()
{
char Str[1000];
printf("Enter the String: ");
scanf("%s", Str);
printf("Length of Str is %ld", strlen(Str));
getch();
}
#include <stdio.h>
#include <string.h>
main()
{
char Str[1000];
printf("Enter the String: ");
scanf("%s", Str);
printf("Length of Str is %ld", strlen(Str));
getch();
}
Lorem ipsum dolor sit amet, consectetur.