1.

What is Union? Explain memory allocation using union.​

Answer»

In C language union is a USER defined datatypebasically every variable in union USES same MEMORY address and the size of union can be the size of biggest variable amoung the variables EX: int x=20; double y=20; when you calculate size in structures we GET 2+8=12bytesbut in Union its only 8 bytes coz the 8 is highest size



Discussion

No Comment Found