#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 are the advantages of Macro over function?
What kind of structure is a house?
How do you construct an increment statement or decrement statement in C?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What is an auto keyword in c?
Explain the meaning of keyword 'extern' in a function declaration.
What are the disadvantages of external storage class?
What is the use of void pointer and null pointer in c language?
What are the types of unary operators?
How many levels deep can include files be nested?
What does sizeof int return?
What is meant by type casting?
What is the purpose of main( ) in c language?
Who developed c language?
How do you search data in a data file using random access method?