RRafal Jackiewicz·Jul 16, 2025Mastering mallocMaster dynamic memory allocation in C. This complete guide explains malloc, calloc, realloc, and free from scratch, covering pointer arithmetic, common pitf9 min read·jackiewicz.hashnode.dev
JJyotiprakash Mishra·Dec 24, 2023I can do it all! Struct + Array + Dynamic Allocation + Pointer ArithmeticLet's create a sample program that combines structures, arrays, dynamic allocation, and pointer arithmetic, along with comments for explanation: #include <stdio.h> #include <stdlib.h> // Define a structure representing a point in 3D space struct Poi...2 min read·blog.jyotiprakash.org
JJyotiprakash Mishra·Dec 24, 2023What's in a name?In C, pointers and arrays are closely related concepts. In fact, arrays in C are essentially a contiguous block of memory, and the name of the array often decays into a pointer to the first element. This is why you can use pointer notation to access ...4 min read·blog.jyotiprakash.org
JJyotiprakash Mishra·Dec 23, 2023Even pointers have to do maths!Understanding Pointer Arithmetic in C: A Hands-on Guide Pointer arithmetic is a powerful feature in the C programming language that allows for efficient navigation through memory. It's a concept that often confuses beginners but is fundamental for ta...3 min read·blog.jyotiprakash.org