C Operators Explained: Types, Precedence and Associativity

Operators are fundamental building blocks of the C programming language. They allow programmers to perform calculations, compare values, manipulate individual bits, access memory, and control program logic. Although most operators are straightforward when used individually, combining several operators in a single expression can sometimes produce unexpected results. To understand how expressions work in C, we […]

Include guards in C

Include guards are a mechanism used in C and C++ programming to prevent multiple inclusions of the same header file. They help avoid issues such as redefinition errors, which can occur when the same header file is included multiple times in a program.

Stack, heap and memory management in microcontrollers

In this article I’ll do my best to explain as simply as possible how memory management in microcontrollers works, what are “stack” and “heap” areas, and what’s the difference between them. Let’s start with a general diagram presenting how “uC” RAM memory is divided into diffrent arreas: Starting from the bottom, which is the beginning […]