Question discussion

Which of the following is a collection of one or more variables, possibly of different data types, grouped together under a single name for…

176008Medium 1 reply 958 views
32
Which of the following is a collection of one or more variables, possibly of different data types, grouped together under a single name for convenient handling?
  • AArray
  • BStructure
  • CPointer
  • DMacro
Answer not set

Discussion 1

0
CCommunity
A structure in C is a collection of items of different types. Arrays allow defining type of variables that can hold several data items of the same kind.

The keyword struct introduces a structure declaration, which is a list of declarations enclosed in braces. The variables named in a structure are called members.

Example:

struct point

{

int x;

int y;

};