Question :
(a) What is a structure? Provide a simple example of your own to illustrate this feature.
(b) How does a structure differ from an array?
(c) Describe a structure called colour that consists of three character-type members:-red, yellow. Declare two variables brightColor
and darkcolor to be structures of type colour.
(d) What is a union? How does a union differ from a structure? Give an example of a union in C.
(e) For what kind of applications are unions useful?
(f) What is the primary advantage to using a data file?
(g) What is the purpose of the buffer area when working with data files? How is it defined?