Question
#include<stdio.h>
struct
{
int i;
float f;
};
void main()
{
int i=5;
float f=9.76723;
printf("%d %.2f",i,f);
}
What will be output if you compile following c code ?
#include<stdio.h>
struct
{
int i;
float f;
};
void main()
{
int i=5;
float f=9.76723;
printf("%d %.2f",i,f);
}
Answer: Option D
Was this answer helpful ?
Both <struct type name> and <structure variables> are optional. Thus the structure
defined in the above program has no use and program executes in the normal way.
Was this answer helpful ?
More Questions on This Topic :
Question 3.
How will you free the allocated memory ?
....
Submit Solution