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
The detailed answer for the ... View full answer
Get step-by-step solutions from verified subject matter experts
