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
Where static variables are stored in memory in c?
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
Why c language is called c?
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
Can you please compare array with pointer?
What is a lvalue
Explain how can I make sure that my program is the only one accessing a file?
What are the different types of errors?
What is #line used for?
How do you print an address?
What is the function of this pointer?
Which is better malloc or calloc?
Why we use stdio h in c?
How is a pointer variable declared?
What’s the special use of UNIONS?