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 package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
Explain what is the heap?
Do you know what are bitwise shift operators in c programming?
What is identifiers in c with examples?
Why does not c have an exponentiation operator?
When is the “void” keyword used in a function?
what is the diffrenet bettwen HTTP and internet protocol
Define the scope of static variables.
What is pointers in c with example?
What is hash table in c?
Explain data types & how many data types supported by c?
Can a program have two main functions?
Why is %d used in c?
Define C in your own Language.
What is c programming structure?