Back to: C
A struct is a composite data type that defines a group of variables under a name, in a memory block.
Structs are found in some other languages, including C++ but while similar, they are not the same! If you have used them in C++, then you may be aware that they are similar to classes. However, C is not an object-oriented language and does not contain classes.
struct tag_name {
type member1;
type member2;
};