How does using an array of structures impact memory usage in a C program?

  • Using an array of structures depends on the size of the array.
  • Using an array of structures has no impact on memory usage.
  • Using an array of structures increases memory usage.
  • Using an array of structures reduces memory usage.
Using an array of structures in a C program increases memory usage because each element of the array holds a complete structure, and memory is allocated for each. This can be more memory-intensive compared to individual structures.
Add your answer
Loading...

Leave a comment

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