cstartes
Search stops here
Pages
Home
Blogroll
Guest Post
Privacy Policy
Contact Us
About
Find the length of string without using sting handling function.
*/Use header file string.h /*
void main()
{
char[200];
int i;
clrscr();
printf("Enter a string");
scanf("%s",a);
while(a[i]!='\0')
{
i++;
}
printf("The length of the sting=%d",i);
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment