Showing posts with label length. Show all posts
Showing posts with label length. Show all posts

Wednesday, February 11, 2015

C program to find length of a string


C program to find length of a string

#include<stdio.h>
#include<conio.h>

void main()
{
int i;
char str[50];
clrscr();
printf("Enter a string:");
gets(str);

for(i=0;str[i]!=
Read more »