Is it possible to change the name of the data type that you will be using in your code? Say, instead of defining "int a", you want to do "my_type a" after telling the compiler that "my_type" = "int". Thanks.
Yes, C supports this using a typedef declaration:
typedef int my_type;
my_type a;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With