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
Which control loop is recommended if you have to execute set of statements for fixed number of times?
Write a program to check whether a number is prime or not using c?
Does c have circular shift operators?
How to get string length of given string in c?
What is dynamic variable in c?
By using C language input a date into it and if it is right?
What is sizeof in c?
Explain the difference between structs and unions in c?
What extern c means?
Write a program which returns the first non repetitive character in the string?
Explain what is the difference between a free-standing and a hosted environment?
Why dont c comments nest?
What is c value paradox explain?
Why do we use static in c?
what is the role you expect in software industry?