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 ", e.age, e.sal); return 0; }

Correct Answer: 0, 0.000000

Explanation:

When an automatic structure is partially initialized remaining elements are initialized to 0(zero).

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion