Kiran Chauhan
Technology, Politics, and Folk Literature
TIL: typedef is not recommanded with struct in C
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.
TIL: Recommended Way to Define Pointer Variables in C
Today, I learn that we should use int* x
to define a pointer variable than int *x
. Why?
Previous Posts
- Weird Bug
- Maps in Go
- Arrays and Slices
- Catchy Advice, Boring Advice
- Welcome to Go
- GTK4 Pt. 1
- Fun SQL Pt. 1
- Hello World App in Qt 6.x
- Getting Started with Qt 6.x
- Redux
Archives
- August 2025 (1)
- April 2025 (2)
- March 2025 (3)
- February 2025 (2)
- January 2025 (7)
- September 2024 (3)
- August 2024 (6)
- July 2024 (1)
- June 2024 (2)
- February 2024 (3)
- October 2023 (1)
- August 2023 (1)
- April 2023 (1)
- March 2023 (3)
- February 2023 (2)
- January 2023 (5)
- January 2020 (1)
Tags
- mern(1)
- thoughts(5)
- til(2)
- c(3)
- nest(3)
- rust(1)
- go(4)
- rails(2)
- sails(3)
- express(1)
- code-reading(1)
- lisp(2)
- psql(1)
- sql(2)
- hono(4)
- phoenix(3)
- react(2)
- javascript(1)
- elixir(4)
- redux(1)
- qt(2)
- gtk(1)
Subscribe to posts via [RSS]
© 2023-2025 Kiran Chauhan. kc@marichi.dev