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 / sivasankar.a
the answer is c)9 because of "etrance"this word lengh is 9.
| Is This Answer Correct ? | 3 Yes | 19 No |
Post New Answer View All Answers
Is anything faster than c?
What is nested structure in c?
What is c method?
Is void a keyword in c?
What is the purpose of the statement: strcat (S2, S1)?
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
What is derived datatype in c?
What is the best style for code layout in c?
How to create struct variables?
What does dm mean sexually?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
How can you read a directory in a C program?
What are 'near' and 'far' pointers?
What is a pointer in c?
Explain the advantages and disadvantages of macros.