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 generate the length of a string without using len
funtion?

Answer Posted / shreesha vailaya


int strlength(char s[])
{
int i,len;
for(i=0;s[i];i++)
len++;
return len;
}

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of the functions?

1158


Is it possible to use curly brackets ({}) to enclose single line code in c program?

1316


What do mean by network ?

1160


How many keywords are there in c?

1076


What is the significance of c program algorithms?

1145


What is data type long in c?

1076


write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

2864


List some of the static data structures in C?

1198


What is 1f in c?

2650


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

998


How are Structure passing and returning implemented by the complier?

1168


What are the 4 data types?

1012


Can we add pointers together?

1056


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2466


a value that does not change during program execution a) variabe b) argument c) parameter d) none

1236