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

What will be the output of the program?

#include#includeunion 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;}

Error: RValue required

Error: cannot convert from 'const int *' to 'int *const'

Error: LValue required in strcpy

No error


Step by Step Solution

3.34 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The detailed answer for the ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!