-
Which of the following is the correct output fot the program given below?
#include <studio.h>
int main ()
{
struct emp
{
char name[40];
int age;
float sal;
};
struct emp e = {"Ramu"};
printf ("%d %f\n", e.age, e.sal);
return 0;
}
-
- 0 0.000000
- Garbage values
- Error
- None of the above
Correct Option: A
When an automatic structure is partially initialised, the remaining elements of the structure are initialised to 0.