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
What is ctrl c called?
What is the use of typedef in c?
What is a far pointer in c?
Do pointers need to be initialized?
Explain how can I manipulate strings of multibyte characters?
Explain how can I write functions that take a variable number of arguments?
Write a program with dynamically allocation of variable.
Why static is used in c?
Explain how can type-insensitive macros be created?
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
What does emoji p mean?
In a switch statement, explain what will happen if a break statement is omitted?
What does static variable mean in c?
What is the use of putchar function?
What does it mean when the linker says that _end is undefined?