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 should malloc(0) do?
What are inbuilt functions in c?
How to write c functions that modify head pointer of a linked list?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
Is a house a shell structure?
Is register a keyword in c?
Are the variables argc and argv are always local to main?
What is variable and explain rules to declare variable in c?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
What is a rvalue?
How can you find the day of the week given the date?
What is an endless loop?