Structs
struct [<structureName>]
{
<fieldType> <fieldName>
} [<variableName>];
structureName and variableName are optional, but should always have at least one, otherwise it’s useless (can’t ever be referenced)
Example: struct
{
int quantity;
char name[80];
} inventoryData;
Previous slide
Next slide
Back to first slide
View graphic version