View Single Post
  #7 (permalink)  
Old May 30th, 2010, 07:19 PM
EliteHussar
Guest
 
Posts: n/a
Default

Programming Tutorial
C tutorial 7 – Structures
When programming, it is often convenient to have a single name with which to refer to a group of a related values. Structures provide 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.

C tutorial 7 – Structures
Reply With Quote