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 does %p mean?
we all know about the function overloading concept used in C++ and we all learnt abt that.... but that concept is already came in C in a very smaller propotion ... my question is IN WHICH CONCEPT THERE IS A USE OF FUNCTION OVERLOADING IS USED in C language?????????????
Why c is a procedural language?
Is c weakly typed?
Why c is called a mid level programming language?
Print all numbers which has a certain digit in a certain position eg: number=45687 1 number=4 2 number=5 etc
What is the use of c language in real life?
How variables are declared in c?
how to make a scientific calculater ?
Can you assign a different address to an array tag?
What is meant by int fun const(int a, int b) { .... ... }
What are the different types of objects used in c?