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...

a memory of 20 bytes is allocated to a string declared as
char *s then the following two statements are executed:
s="Etrance"
l=strlen(s);
what is the value of l ?
a.20
b.8
c.9
d.21

Answer Posted / fazlur rahaman naik

the string is Entrance or Etrance?
if it is Entrance,then only the answer is here.

b is the right answer.

because string length means it will count only the no.of
characters in that string only...not the null character.

Is This Answer Correct ?    23 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can i use “int” data type to store the value 32768? Why?

1180


What is structure pointer in c?

1030


Give me the code of in-order recursive and non-recursive.

1359


What is c++ used for today?

1096


What is pass by reference in c?

1169


What is wrong with this code?

1165


What is a wrapper function in c?

1105


Why is %d used in c?

994


In C, What is the #line used for?

2183


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

1054


Explain how do you sort filenames in a directory?

1022


what are the facialities provided by you after the selection of the student.

2234


What does node * mean?

1177


What 'lex' does?

1154


Why isn't it being handled properly?

1047