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 / sivasankar.a

the answer is c)9 because of "etrance"this word lengh is 9.

Is This Answer Correct ?    3 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which driver is a pure java driver

1076


What is malloc() function?

725


Can you define which header file to include at compile time?

687


What is the difference between array and pointer in c?

691


Explain what are preprocessor directives?

715






What is a nested formula?

688


Explain how can a program be made to print the name of a source file where an error occurs?

807


What are control structures? What are the different types?

694


Are the outer parentheses in return statements really optional?

678


What is cohesion in c?

648


Tell me when is a void pointer used?

753


Do you know the use of 'auto' keyword?

748


What is a null pointer in c?

703


Why do we use c for the speed of light?

702


Write a program to check prime number in c programming?

702