Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to find string length wihtout using c function?

Answer Posted / j.j.anand kamlesh

void main()
{
int i;
char ch[100];
printf("ENTER THE STRING :");
gets(ch);
for(i=1;ch[i];i++);
printf("THIS IS THE LENGTH : %d",i);
}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do we print only part of a string in c?

1078


When should the register modifier be used? Does it really help?

1002


What is the importance of c in your views?

1232


What are the advantages of c language?

1147


Explain setjmp()?

1113


Here is a good puzzle: how do you write a program which produces its own source code as output?

1167


Are pointers integer?

1071


What is the difference between #include

and #include “header file”?

1080


Whats s or c mean?

1082


The difference between printf and fprintf is ?

1338


What are integer variable, floating-point variable and character variable?

1295


Which is better between malloc and calloc?

1249


Can the “if” function be used in comparing strings?

1105


What are inbuilt functions in c?

1080


Can a file other than a .h file be included with #include?

1218