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 main characteristics of c language describe the structure of ac program?

1148


If null and 0 are equivalent as null pointer constants, which should I use?

1119


What is call by reference in functions?

1320


Describe the modifier in c?

1057


What is sizeof int?

1048


Describe dynamic data structure in c programming language?

1038


What is the use of sizeof?

969


what is stack , heap ,code segment,and data segment

2632


A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler

1050


How can you increase the size of a statically allocated array?

1030


What does 3 periods mean in texting?

1011


how to make a scientific calculater ?

2009


What are the advantages of c language?

1041


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1897


What are the preprocessor categories?

1001