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 will be the output for the following main() { printf("hi" "hello"); }
What are called c variables?
How is pointer initialized in c?
What is the full form of getch?
Without Computer networks, Computers will be half the use. Comment.
Explain void pointer?
What are the 5 organizational structures?
What are the different types of control structures in programming?
How is actual parameter different from the formal parameter?
Explain Basic concepts of C language?
How do we declare variables in c?
What is the code in while loop that returns the output of given code?
What is difference between %d and %i in c?
Why do we use int main instead of void main in c?
What is wrong with this statement? Myname = 'robin';