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);
}
Answers were Sorted based on User's Feedback
Answer / 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 |
How do I declare a pointer to an array?
What are multibyte characters?
void main() { char far *farther,*farthest; printf("%d..%d",sizeof(farther),sizeof(farthest)); }
implement NAND gate logic in C code without using any bitwise operatior.
What is the difference between fread buffer() and fwrite buffer()?
What is the difference between if else and switchstatement
What is the difference between functions getch() and getche()?
Write a program to find the given number is odd or even without using any loops(if,for,do,while)
how to set Nth bit of a variable?
What is string concatenation in c?
Why #include is used in c language?
Write a C program to multiply tho numbers without using arithmetic operator (+, -, *, /).