Home » C Programming » Constants

What will be the output of the program? #include #include union employee { char name[15]; int age; float salary; }; const union employee e1; int main() { strcpy(e1.name, "K"); printf("%s %d %f", e1.name, e1.age, e1.salary); return 0; }

Correct Answer: No error

Explanation:

The output will be (in 16-bit platform DOS):


K 75 0.000000

← Previous Question Next Question→

More Questions from Constants

Discussion & Comments

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