Chapter - 11: Structures

State True or False:


1. All structure elements are stored in contiguous memory locations.

2. An array should be used to store dissimilar elements, and a structure to store similar elements.
False: Its reverse is true.

3. In an array of structures, not only are all structures stored in contiguous memory locations, but the elements of individual structures are also stored in contiguous locations.
False: First all the elements are stored in contiguous memory, and as the whole is an array of structures, so all structures also stored in contiguous memory.

© 2021 Garbage Valuegarbage value logo