Today, I learn that typedef
with struct
trick give you a way to use structure tag like normal type. But, it is not suggested as mentioned in Linux kernel coding style document except few scenarios.
Kiran Chauhan
Technology, Politics, and Folk Literature
TIL: typedef is not recommanded with struct in C
Jan 22, 2023TIL: Recommended Way to Define Pointer Variables in C
Jan 16, 2023Today, I learn that we should use int* x
to define a pointer variable than int *x
. Why?