What is a key characteristic of a union in C?

  • Allows multiple data types in a single memory location
  • Automatically allocates memory on the stack
  • Only works with integers
  • Provides dynamic memory allocation
A union in C allows you to store different data types in a single memory location, and it's a crucial feature for creating composite data types.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *