Q : What is meant by structure data type? How do we reference the elements of a structure?
Give example of how a value of a structure can be assigned to another structure.
Solution :
A structure is user defined data type which is used to store
record based data. Structure is useful when there is a need to process record
type data for example student record which is a combination of more than
variable (roll,name,class,marks etc). Structure encapsulates more than one
variable into a single logical unit. Without structure, processing of record
based data is not an easy task. Programmer need to declare many variables with
different name. Which increase complexity?