#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
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
What is wrong in this statement?
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
Why is #define used?
Which is better pointer or array?
Is void a keyword in c?
Does c have an equivalent to pascals with statement?
What is scope rule of function in c?
find out largest elemant of diagonalmatrix
What is the purpose of sprintf?
Write program to remove duplicate in an array?
Explain how can I convert a string to a number?
Give differences between - new and malloc() , delete and free() ?
How can I read and write comma-delimited text?
Explain the use of 'auto' keyword