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
Which driver is a pure java driver
What is malloc() function?
Can you define which header file to include at compile time?
What is the difference between array and pointer in c?
Explain what are preprocessor directives?
What is a nested formula?
Explain how can a program be made to print the name of a source file where an error occurs?
What are control structures? What are the different types?
Are the outer parentheses in return statements really optional?
What is cohesion in c?
Tell me when is a void pointer used?
Do you know the use of 'auto' keyword?
What is a null pointer in c?
Why do we use c for the speed of light?
Write a program to check prime number in c programming?