#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
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
explain what are pointers?
Explain output of printf("Hello World"-'A'+'B'); ?
Why is c called a structured programming language?
What standard functions are available to manipulate strings?
Explain the use of 'auto' keyword in c programming?
Describe static function with its usage?
When should I declare a function?
Why is this loop always executing once?
Is c easier than java?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
Explain what are compound statements?
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
Explain heap and queue.
What are inbuilt functions in c?