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 |
what will be printed by this printf? printf("%c",printf("hi")["sharkselva"])); }
give one ip, find out which contry
how can I convert a string to a number?
How can I set an array's size at run time?
Are the variables argc and argv are always local to main?
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
What is property type c?
What does 4d mean in c?
main() { int i; printf("%d",scanf"%d",&i))//if the input is 12 24 34 then wat will be the output }
What is meant by type specifiers?
What is far pointer in c?
7. Identify the correct argument for the function call fflush() in ANSI C: A)stdout B)stdin C)stderr D)All the above