solve problems
Thursday, 21 July 2011
PROGRAM to find the string length without using inbuilt functions in C++
BlogThis!
|
Email This!
|
Print This!
|
No comments
Do you like this post?
#include
#include
void main()
{
char a[30];
int count=1,i;
clrscr();
cout<<"Enter the string : "; cin>>a
for(i=0;a[i]!=NULL;i++)
{
count++;
}
cout<<"The length of the string is : "<
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment