Recent Blogs
“Modern C”: Notes on chapter 6 “Derived data types”
These are my notes taken while reading chapter 6 “Derived data types” from the book “Modern C” by Jens Gustedt.
This chapter discusses objects that consist of other objects, such as arrays, pointers, structures, and type aliases.
How to avoid subtle bugs in malloc usage in C
Whenever a computer program needs to store data of the size determined only
during the runtime, then dynamic memory allocation is required.
Memory allocation happens in the memory heap, and in C is commonly done
via a library function malloc
, which has subtle things with its usage
that I would like to discuss here.
“Modern C”: Notes on chapter 5 “Basic values and data”
These are my notes taken while reading chapter 5 “Basic values and data” from the book “Modern C” by Jens Gustedt.
This chapter discusses values of different objects that are used in a C program, and how they are represented.