#include <stdio.h>
#include <stdlib.h>
//attempt to use an enum as unsigned char
enum NamedByte {
ADD,
SUB,
MUL
};
typedef enum NamedByte NamedByte;
int main(void) {
unsigned char* bytes = malloc(sizeof(unsigned char) * 10);
bytes[0] = ADD;
bytes[1] = SUB;
bytes[2] = MUL;
bytes[3] = MUL;
for(size_t i = 0; i< 10; i++) printf("The number is %u\n", bytes[i]);
return 0;
}
/*The number is 0
The number is 1
The number is 2
The number is 2
The number is 0
The number is 0
The number is 0
The number is 0
The number is 0
The number is 0*/