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
When is the “void” keyword used in a function?
write a programming in c to find the sum of all elements in an array through function.
What is abstract data structure in c?
How do you list a file’s date and time?
Write programs for String Reversal & Palindrome check
Where register variables are stored in c?
Is c is a procedural language?
Can main () be called recursively?
Differentiate between new and malloc(), delete and free() ?
Why can't I perform arithmetic on a void* pointer?
Which are low level languages?
How many types of arrays are there in c?
WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER
Do you know what are bitwise shift operators in c programming?
How can I recover the file name given an open stream or file descriptor?