#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 / janava
In this it generate an error because declaration the array
as char but read the variable as integer.
| Is This Answer Correct ? | 7 Yes | 6 No |
Post New Answer View All Answers
Does c have class?
What is a 'null pointer assignment' error?
What is the use of pointers in C?
What is modifier & how many types of modifiers available in c?
which is an algorithm for sorting in a growing Lexicographic order
Write a simple code fragment that will check if a number is positive or negative.
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
What is a nested loop?
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix
What is the size of a union variable?
What is a good data structure to use for storing lines of text?
Explain high-order bytes.
Explain what is the heap?
Can you write a programmer for FACTORIAL using recursion?
Difference between constant pointer and pointer to a constant.