#include<std.h>
int main()
{
char *str[]={"Frogs","Do","Not","Die","They","Croak!"};
printf("%d %d\n",sizeof(str),strlen(str));
...return 0;
}
what will the output of the above program?
Answer Posted / s.ramakrishna
thw output becomes 6 6
why because the character pointer stores their values and
that will be printed
Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What is hashing in c language?
What is union in c?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
Can a variable be both constant and volatile?
Why we use void main in c?
What is sizeof in c?
write a program to create a sparse matrix using dynamic memory allocation.
I have a varargs function which accepts a float parameter?
What is printf () in c?
What are conditional operators in C?
What is #define in c?
What is meant by operator precedence?
Why we use int main and void main?
C program to find all possible outcomes of a dice?
What are the various types of control structures in programming?