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.
Loading...
Related Quiz
- How does the strtok() function work in C?
- Pointer arithmetic in C is based on ________, which means that the pointer is incremented or decremented by the size of the data type it points to.
- The ________ directive can be used in C to include a file only once in a program.
- What is the purpose of an array in C?
- What does the address-of operator (&) do in C?