Types, Structs & Enums

Examples on typedef, struct & enum:

typedef enum{
    COMBI, LIMOUSINE, MINIVAN, SUBCOMPACT
}fahrzeugklasse;

typedef enum{
    NOPE = 0, YEAH
} original;

typedef struct fahrzeug_s{
    original condition;
    fahrzeugklasse klasse;
}fahrzeug;

Blog Comments powered by Disqus.