Question:
What is the difference between typedef
and #define
?
Answer:
The difference is that the typedef
operator adds a new name to the existing ones. The #define
directive is a preprocessor command. typedef
supported at the language level.