Type definitions can be made outwith or within functions. Scope is as for variables.
enum Rainbow {red,orange,yellow,green,blue,indigo,violet};
typedef enum Rainbow Spectrum; /*Alias Spectrum to Rainbow */
typedef int WholeNum; /* Alias WholeNum to mean int */
Spectrum S1, S2; /*Variables S1 and S2 of type Spectrum */
WholeNum D1, D2; /*Variables D1 and D2 of type WholeNum */