#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


Please Help Members By Posting Answers For Below Questions

Can main () be called recursively?

632


What is call by reference in functions?

571


Is there any possibility to create customized header file with c programming language?

627


Explain what will the preprocessor do for a program?

606


Which built-in library function can be used to match a patter from the string?

748






What is #ifdef ? What is its application?

650


Explain what is #line used for?

609


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)

1864


How can you restore a redirected standard stream?

611


Which of these functions is safer to use : fgets(), gets()? Why?

636


what is the format specifier for printing a pointer value?

617


Can we compile a program without main() function?

636


What is table lookup in c?

632


What is the use of clrscr?

598


which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;

2410