Get Email Subscription

Enter your email address:

Delivered by FeedBurner

Wednesday, April 21, 2010

This is a program to find the length of a user entered string. (c++)


#include< stdio.h> 
 
void main() 
{
char * str;  
int i=0,space=0;
printf("Enter the String : ");
scanf("%s",str);    
while(str[i]!='\0') 
   {
   i++;
   }
printf("The number of character in the string are : %d", i);
}   

Related Posts by Categories



0 comments:

About This Blog

Lorem Ipsum

  © Blogger templates Newspaper III by Ourblogtemplates.com 2008

Back to TOP