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 I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
When should a far pointer be used?
What is the difference between a string and an array?
Explain the advantages and disadvantages of macros.
Why is c faster?
What is static function in c?
write a program to print largest number of each row of a 2D array
What is wild pointer in c?
What are the usage of pointer in c?
What are the 5 elements of structure?
Explain how do you print only part of a string?
given post order,in order construct the corresponding binary tree
Explain the difference between getch() and getche() in c?
What is the purpose of realloc()?
What is an array in c?