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 to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3322


Explain indirection?

1144


Why pointers are used?

1079


What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?

1080


Is main an identifier in c?

1145


What’s the special use of UNIONS?

1152


What is difference between array and pointer in c?

1093


Write a program to swap two numbers without using the third variable?

1070


plz let me know how to become a telecom protocol tester. thank you.

2191


Differentiate between Macro and ordinary definition.

1384


Is null equal to 0 in sql?

1151


What is the purpose of clrscr () printf () and getch ()?

1073


what is ur strangth & weekness

2434


What are the ways to a null pointer can use in c programming language?

1137


Explain the use of keyword 'register' with respect to variables.

1054