/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <stdio.h>

enum direction { north, south, west, east };
enum color { red, green, blue, yellow };
enum material { wood, iron, concrete };

int main(int argc, char *argv[])
{
    enum direction d = west;
    enum color c = green;
    enum material m = d / c;
    printf("%d\n", m);
    return 0;
}
