Dec 28, 2025 · 17 min read · You've just spent three hours debugging why your userspace application crashes every time it talks to your kernel module. The ioctl calls return garbage data, pointers that seems correct in application is corrupted, and structure fields contain compl...
Join discussion
Dec 24, 2025 · 3 min read · CS50 Week 4 was one of the most challenging weeks so far — not just technically, but personally as well. This was the week where concepts like memory management, pointers, file handling, and low-level data representation all came together, and it dem...
Join discussion
Dec 16, 2025 · 83 min read · Part 1: Functions and the Call Stack Before we can understand pointers and memory management in C, we need to understand how functions work and what happens behind the scenes when your program runs. This foundation will make everything else click int...
Join discussionJul 15, 2025 · 8 min read · Introduction If you’ve worked with arrays and pointers in C++, you might have noticed some confusing behavior. For example, arr == &arr[0] works fine, but int* p = &arr; throws an error. In this post, I’ll explain what’s going on behind the scenes w...
Join discussion
May 20, 2025 · 16 min read · Why TF does this blog even exist? Let’s be real — most of us treat pointers like radioactive waste. Let's ignore those dreadful stories of childhood when pointers were introduced to you like a BIG demon. But deep down, the truth is: Memory is power....
Join discussion
Mar 21, 2025 · 13 min read · In higher level languages, it is generally assumed that an array is dynamic by default, that you can push, pop, and shift any element in or out of your array with ease. In C the process is not as straight forward, if you want to add an element to you...
Join discussion
Feb 15, 2025 · 3 min read · Introduction Pointers in C are like relationships- powerful, complicated, and if you mess up, everything crashes. Ever wondered why your program randomly throws a segmentation fault? That’s because you tried to access memory like a hacker in a Hollyw...
Join discussionJan 28, 2025 · 22 min read · 1. Introduction In the realm of software development, the ability to build applications that can adapt and respond dynamically is crucial. Dynamic behavior allows programs to modify their execution paths based on user input, external conditions, or o...
Join discussionOct 27, 2024 · 4 min read · A pointer is a variable that stores the memory address of another variable. In languages like C and C++, pointers are commonly used for dynamic memory management, arrays, and data structures. Declaration and Initialization: int a = 10; int *p = &a; ...
Join discussion