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 / valli
20 bytes of memory is allocated to s
hence
l=strlen(s);//l=20
so answer is a
Is This Answer Correct ? | 2 Yes | 14 No |
Post New Answer View All Answers
What are different storage class specifiers in c?
What does the characters “r” and “w” mean when writing programs that will make use of files?
How can I recover the file name given an open stream?
What is the difference between struct and union in C?
What is the difference between Printf(..) and sprint(...) ?
explain what are actual arguments?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
What is the process to create increment and decrement stamen in c?
What is the use of static variable in c?
What are different types of operators?
Write a program to generate random numbers in c?
Explain the difference between structs and unions in c?
How do you define structure?
How can I send mail from within a c program?
What is type qualifiers?