1. Home
  2. Computing & Technology
  3. C / C++ / C#

Definition of Struct

By David Bolton, About.com

Definition: A struct is type in C and C++ that can hold a group of variables in one variable.

In C++ a class is a struct with methods added to it.

Glossary:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Examples:
The payroll program used a struct to hold employee name, company number, tax reference and salary details.
Explore C / C++ / C#
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. C / C++ / C#
  4. Glossary
  5. Struct - Definition

©2009 About.com, a part of The New York Times Company.

All rights reserved.