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
Is c high or low level?
What is a program flowchart and how does it help in writing a program?
What is bss in c?
What is zero based addressing?
What is a structure in c language. how to initialise a structure in c?
What are pointers? What are stacks and queues?
How to explain the final year project as a fresher please answer with sample project
What is an lvalue?
What is pointer to pointer in c with example?
how many key words availabel in c a) 28 b) 31 c) 32
Explain void pointer?
Explain how can I make sure that my program is the only one accessing a file?
Is exit(status) truly equivalent to returning the same status from main?
How does struct work in c?
Define Spanning-Tree Protocol (STP)