question a what is a structure provide a simple


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?

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: question a what is a structure provide a simple
Reference No:- TGS0360215

Expected delivery within 24 Hours