#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


Please Help Members By Posting Answers For Below Questions

What is hashing in c language?

606


What is union in c?

629


Is it possible to use curly brackets ({}) to enclose single line code in c program?

786


Can a variable be both constant and volatile?

556


Why we use void main in c?

587






What is sizeof in c?

564


write a program to create a sparse matrix using dynamic memory allocation.

4369


I have a varargs function which accepts a float parameter?

573


What is printf () in c?

576


What are conditional operators in C?

619


What is #define in c?

612


What is meant by operator precedence?

668


Why we use int main and void main?

533


C program to find all possible outcomes of a dice?

1845


What are the various types of control structures in programming?

622