#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
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
List a few unconditional control statement in c.
What is the purpose of ftell?
Distinguish between actual and formal arguments.
What is the most efficient way to count the number of bits which are set in an integer?
What do you understand by normalization of pointers?
What is a function simple definition?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
to find the closest pair
What is the size of structure in c?
Explain what are header files and explain what are its uses in c programming?
Why void is used in c?
What is a ternary operator in c?
Differentiate between ordinary variable and pointer in c.
Explain a file operation in C with an example.