Using structure variables

Syntax

structVariableName.memberName;

Code example

// structure to handle color values
struct rgb {
    int red;
    int green;
    int blue;
} color;

int main (void){
    color.red   = 0;   // set   red portion of color
    color.green = 145; // set green portion of color
    blue        = 189; // set  blue portion of color
}