1. Technology
Send to a Friend via Email

Definition of Struct

By

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.

©2014 About.com. All rights reserved.