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 / subbu

l=7 is the right answer, which is not given in the options.

Is This Answer Correct ?    10 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

1007


When should a far pointer be used?

1140


What is the difference between a string and an array?

1216


Explain the advantages and disadvantages of macros.

1105


Why is c faster?

1113


What is static function in c?

1124


write a program to print largest number of each row of a 2D array

2328


What is wild pointer in c?

1083


What are the usage of pointer in c?

1201


What are the 5 elements of structure?

1084


Explain how do you print only part of a string?

1223


given post order,in order construct the corresponding binary tree

2795


Explain the difference between getch() and getche() in c?

1001


What is the purpose of realloc()?

1149


What is an array in c?

1059