I know what a Union is in C language and I can write programs for Union and structure on my computer. The compiler allocates memory based on the largest Union member. Union members share the same memory space. I believe if memory is limited, using Union instead of a structure is a good idea.
Have you used Union in an embedded program before? What were your needs? In what cases would you prefer using Union in your program?
Have you used Union in an embedded program before? What were your needs? In what cases would you prefer using Union in your program?