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();
}

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button