Computer Science, asked by ktarunsai88, 1 year ago

program to find the length of the string in c

Answers

Answered by hacker3671
1
java can find the length of the string in C++

ktarunsai88: i need it in c
hacker3671: you mean the code
ktarunsai88: yes
hacker3671: use this code
hacker3671: #include
#include

int main()
{
char a[100];
int length;

printf("Enter a string to calculate it's length\n");
gets(a);

length = strlen(a);

printf("Length of the string = %d\n", length);

return 0;
}
hacker3671: #include
hacker3671: are you in whats app
hacker3671: sent the number and i will give the code
hacker3671: with order
Similar questions