#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 stack , heap ,code segment,and data segment

2224


Why do we use return in c?

570


Combinations of fibanocci prime series

1115


An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

659


What is a structure member in c?

551






How can I direct output to the printer?

814


write a program to display all prime numbers

1457


What is strcmp in c?

601


What is the difference between text and binary modes?

649


Why static is used in c?

625


All technical questions

1512


What is a structure and why it is used?

622


What are the complete rules for header file searching?

677


What are called c variables?

575


What are different types of variables in c?

572