1.
const int NUMBER_OF_PARTS = 500;
...
float inventory [NUMBER_OF_PARTS];
2.
enum rainbow {red, blue, green, purple};
...
void main ()
{
rainbow color = blue;
...
color = purple;
}
3.
void main ()
{
union
{
int a;
float b;
char c;
};
...
// Must use the variable a in the statement below
// because b is float and c is char
a = 223;
...
}