top of page
Blog

Damiano Pe
Jan 26, 2022
Understanding Strict-Aliasing Rules
The strict-aliasing rules allow the compiler to assume that your code does not alias between incompatible types. In this way, the compiler
228

Damiano Pe
Jan 12, 2022
A Trick You May Not Know And You Shouldn't Even Use
In this dev tip, we talk about a trick that most likely you don't know and which is now more than anything else a legacy of the...
122

mattiaducci
Dec 21, 2021
C-Christmas tree
In this article we will create a sparkling Christmas tree in C using ANSI escape sequences and a smart use of pointers
407
![The Difference Between char str* And char str[]](https://static.wixstatic.com/media/7407f3_6e3259b7b3cc4908b08d2d8cfef82bfc~mv2.png/v1/fill/w_295,h_166,fp_0.50_0.50,q_95,enc_auto/7407f3_6e3259b7b3cc4908b08d2d8cfef82bfc~mv2.webp)
Damiano Pe
Dec 9, 2021
The Difference Between char str* And char str[]
When we define str_1, the compiler creates a character array large enough to hold the string "hello world", which is an immutable string...
99

Damiano Pe
Nov 25, 2021
Effectively Use extern To Share Global Variables
The cleanest and most reliable way to export a global variable is to put an extern declaration inside a header file. This way, when...
44

Damiano Pe
Nov 18, 2021
How To Cast The Result Of malloc
A question that often arises when allocating a new block of memory in C is: should I cast the result of malloc or not?
59

Damiano Pe
Nov 10, 2021
Don't Use feof() To Control A File Read Loop
How do you successfully create a file reading loop by checking if you have reached the end of the file? In C the function feof checks for...
48

Damiano Pe
Nov 3, 2021
Understand All Declarations With The Clockwise-Spiral Rule
The Clockwise-Spiral Rule is a must-have tool that lets C/C++ programmers quickly understand the meaning of variable or function declaration
123

Damiano Pe
Nov 2, 2021
The Meaning Of argc And argv In main()
The input parameters argc and argv are used to send arguments to a program. The program receives arguments thanks to argv, which is a...
58
bottom of page