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
Can you please explain the difference between strcpy() and memcpy() function?
What are unions in c?
How can you read a directory in a C program?
What are the basic data types associated with c?
How can you find the exact size of a data type in c?
What is the difference between scanf and fscanf?
What is storage class?
What are the functions to open and close the file in c language?
Why is sizeof () an operator and not a function?
What is sizeof in c?
Explain how can I pad a string to a known length?
What is c variable?
What’s the special use of UNIONS?
How can you find the day of the week given the date?
What does sizeof return c?