What will be the output of the program? #include#includeunion employee{ char name[15]; int age; float salary;};const union
Fantastic news! We've Found the answer you've been seeking!
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", 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
Related Book For
International Economics
ISBN: 978-1429278447
3rd edition
Authors: Robert C. Feenstra, Alan M. Taylor
Posted Date: