Ten floats are to be stored in memory. What would you prefer, an array or a structure?
Ans: An array, as all elements are of the same data type.
Given the statement, maruti.engine.bolts = 25 ;
Which of the following is True?
structure bolts is nested within structure engine
structure engine is nested within structure maruti
structure maruti is nested within structure engine
structure maruti is nested within structure bolts
Ans: a. structure bolts is nested within structure engine
State True or False
All structure elements are stored in contiguous memory locations.
Ans: True
An array should be used to store dissimilar elements, and a structure to store similar elements.
Ans: False
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.
Ans: True