#define byte charor
typedef char byte;We can make an alias for a pointer, too. For example, if we want to make bytePointer an alias for char*, we can do the following:
#define bytePointer char*or
typedef char* bytePointer;There is a danger in using #define. For example, consider the following:
#define bytePointer char* bytePointer bp, bp2;Preprocessor replaces bytePointer with char*, converting the above declaration to be
char* bp, bp2;Only bp is a pointer to char; bp2 is a char. However, typedef will treat both bp and bp2 as pointers to char.