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 you please explain the difference between strcpy() and memcpy() function?

1071


What are unions in c?

1030


How can you read a directory in a C program?

1148


What are the basic data types associated with c?

1271


How can you find the exact size of a data type in c?

1005


What is the difference between scanf and fscanf?

1268


What is storage class?

1079


What are the functions to open and close the file in c language?

1041


Why is sizeof () an operator and not a function?

1032


What is sizeof in c?

1013


Explain how can I pad a string to a known length?

1196


What is c variable?

1047


What’s the special use of UNIONS?

1152


How can you find the day of the week given the date?

1204


What does sizeof return c?

1064