#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 / sr. amit tyagi
hi dear my name is Amit.
firtly i want to ask that you have used std.h. header
file.can u tell me about this one becuouse i am using
stdio.h header file instead of it.it can make an error if
it is not header file.second thing is that you have used
function strln() which is the function of string.h. to use
this function we have to this header file.it will produced
error with out this header file.
#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
char *str[]={"Frogs","Do","Not","Die","They","Croak!"};
printf("%d %d\n",sizeof(str),strlen(str));
getch();
}
the out put will be 12 and 1....
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Once I have used freopen, how can I get the original stdout (or stdin) back?
How can I read in an object file and jump to locations in it?
What is quick sort in c?
What is a built-in function in C?
What is wrong with this program statement?
If null and 0 are equivalent as null pointer constants, which should I use?
What do you mean by c what are the main characteristics of c language?
What is exit() function?
The statement, int(*x[]) () what does in indicate?
What is the difference between exit() and _exit() function in c?
What is calloc()?
What are pointers? What are different types of pointers?
What is clrscr in c?
What is array of pointers to string?
Write a program for Overriding.