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 that possible to store 32768 in an int data type variable?
What is oops c?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
What is the difference between constant pointer and constant variable?
The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none
What should malloc() do?
What does static variable mean in c?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
How do you declare a variable that will hold string values?
What functions are used for dynamic memory allocation in c language?
What is boolean in c?
What is the auto keyword good for?
How can you increase the size of a dynamically allocated array?
How are strings stored in c?
What is ambagious result in C? explain with an example.