Question
#include<stdio.h>
int main ()
{
struct emp
{
char name [20] ;
int age;
float sal;
};
struct emp e = {"Tiger"};
printf ("%d, %f\n", e.age, e.sal);
return 0;
}
What is the output of the program
#include<stdio.h>
int main ()
{
struct emp
{
char name [20] ;
int age;
float sal;
};
struct emp e = {"Tiger"};
printf ("%d, %f\n", e.age, e.sal);
return 0;
}
Answer: Option A
Was this answer helpful ?
When an automatic structure is partially initialized remaining elements are
initialized to 0(zero).
Was this answer helpful ?
More Questions on This Topic :
Question 10.
By default a real number is treated as a
....
Submit Solution