#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 / naresh lingampally
will be a error since ..
syn: *x will be a pointer and it would always be a digit .
so no variable address can be a character ...
MAKES SENSE ?
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are derived data types in c?
What is the full form of getch?
Is file a keyword in c?
What is the explanation for cyclic nature of data types in c?
while initialization of array why we use a[][2] why not a[2][]...?
In a header file whether functions are declared or defined?
Explain how are portions of a program disabled in demo versions?
What are the types of c language?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
How can I read/write structures from/to data files?
What is the difference between printf and scanf )?
c program to compute AREA under integral
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
How do I send escape sequences to control a terminal or other device?
What is a built-in function in C?