#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
What is c basic?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
What is the difference between array and pointer in c?
How can I automatically locate a programs configuration files in the same directory as the executable?
What are the loops in c?
How can I generate floating-point random numbers?
What is the auto keyword good for?
What is pragma c?
What are bitwise shift operators in c programming?
What are different types of variables in c?
What is the sizeof () operator?
What is selection sort in c?
How are Structure passing and returning implemented by the complier?
What is the difference between memcpy and memmove?
Why doesnt this code work?