What happens to the memory allocation when a structure is defined?

  • Memory is allocated for all its members
  • Memory is allocated for the structure itself
  • Memory is allocated only for the first member
  • No memory allocation occurs
When you define a structure in C, memory is allocated for the structure itself, which includes memory for all its members.
Add your answer
Loading...

Leave a comment

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