#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
Can main () be called recursively?
What is call by reference in functions?
Is there any possibility to create customized header file with c programming language?
Explain what will the preprocessor do for a program?
Which built-in library function can be used to match a patter from the string?
What is #ifdef ? What is its application?
Explain what is #line used for?
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
How can you restore a redirected standard stream?
Which of these functions is safer to use : fgets(), gets()? Why?
what is the format specifier for printing a pointer value?
Can we compile a program without main() function?
What is table lookup in c?
What is the use of clrscr?
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;