This tutorial explains typedef in c programming.
Typedef in C
Although typedef is thought of as being a storage class, it isn’t really. It allows you to introduce synonyms for types that could have been declared some other way.
The new name becomes equivalent to the type that you wanted, as this example shows.
typedef int aaa, bbb, ccc; typedef int ar, arr; typedef char c, *cp, carr; /* now declare some objects */ /* all ints */ aaa int1; bbb int2; ccc int3; ar yyy; /* array of 15 ints */ arr xxx; /* 9*6 array of int */ c ch; /* a char */ cp pnt; /* pointer to char */ carr chry; /* array of 100 char */
If you have any doubt feel free to comment below 🙂
You can also read the below tutorials.
Embedded Software | Firmware | Linux Devic Deriver | RTOS