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

20 bytes of memory is allocated to s
hence
l=strlen(s);//l=20
so answer is a

Is This Answer Correct ?    2 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what will be the output for the following main() { printf("hi" "hello"); }

11029


What are called c variables?

1078


How is pointer initialized in c?

1039


What is the full form of getch?

1290


Without Computer networks, Computers will be half the use. Comment.

2323


Explain void pointer?

1057


What are the 5 organizational structures?

1039


What are the different types of control structures in programming?

1144


How is actual parameter different from the formal parameter?

1030


Explain Basic concepts of C language?

1171


How do we declare variables in c?

1079


What is the code in while loop that returns the output of given code?

2010


What is difference between %d and %i in c?

1250


Why do we use int main instead of void main in c?

1159


What is wrong with this statement? Myname = 'robin';

1339