what would be the output of the follwing
struct st
{
char name[20];
int i;
float f;
};
main()
{
struct st emp = {"forum"};
printf("%d %f",emp.i,emp.f);
}
Answer Posted / maruthi
Answer:0,0
Because if 1 element is initialised in structure or array
the remaining elements are initialised to 0 by default.
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What is the use of gets and puts?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none
Write a code to determine the total number of stops an elevator would take to serve N number of people.
Compare interpreters and compilers.
What is fflush() function?
What is difference between array and structure in c?
What is difference between union All statement and Union?
What is function prototype in c language?
Can we initialize extern variable in c?
What is optimization in c?
How can my program discover the complete pathname to the executable from which it was invoked?
What does 3 mean in texting?
What is use of pointer?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile