answersLogoWhite

0

Structures are a way of storing many different values in variables of potentially different types under the same name. This makes it a more modular program, which is easier to modify because its design makes things more compact. Structs are generally useful whenever a lot of data needs to be grouped together--for instance, they can be used to hold records from a database or to store information about contacts in an address book. In the contacts example, a struct could be used that would hold all of the information about a single contact--name, address, phone number, and so forth.
->A structure is a collection of related elements , possibly of different types , having a single name.

->"each element in a structure is called field".

->A FIELD is a smallest element of named data that has meaning. It has many characteristics of the variable .

->It exits in memory . it can be assigned values, which in turn can be accessed for selection or manipulation.

-> A field differs form variable primarily in that it is a part of structure.

ITS SYNTAX IS:

struct tag name

{

field list;

};

User Avatar

Wiki User

14y ago

What else can I help you with?