Blog
Page 703 of my articles, tutorials, and thoughts
Latest Articles
How do the likely/unlikely macros in the Linux kernel work and what is their benefit?
# How do the `likely`/`unlikely` macros in the Linux kernel work and what is their benefit? If you've been delving into the Linux kernel recently, you may have come across some intriguing calls like these: ```c if (unlikely(fd < 0)) { /* Do something
Why use pointers?
# Why Use Pointers in Programming? š” So, you've just started learning C++ and are wondering why on earth you would need to use pointers. Don't worry, it's a common question, and in this blog post, I'll break it down for you in a simple and engaging way!
What is the LD_PRELOAD trick?
š Blog Post: Demystifying the LD_PRELOAD Trick: Unleashing the Power of Symbols š Introduction: --------------------- š Hey Tech Enthusiasts! Have you ever stumbled upon the mysterious term "LD_PRELOAD trick" while exploring the programming world? š I
How do I print the full value of a long string in gdb?
ššØļø **Printing the Full Value of a Long String in GDB** Are you a developer trying to debug your C-string using GDB? š¤ Worried that the string is being abbreviated and you're missing valuable information? š Don't worry! In this blog post, we'll addres
Is Fortran easier to optimize than C for heavy calculations?
# Is Fortran š easier to optimize than C ā” for heavy calculations? Have you ever wondered if Fortran is truly faster than C when it comes to heavy calculations? š¤ Well, let's dive into this topic and find out if the rumors are true! š” ## The Great Fo
How can I get a file"s size in C?
# š How to Get a File's Size in C š¤ So, you're coding in C and wondering how to find the size of a file? Don't worry, we've got you covered! Knowing the size of a file is essential, especially if you want to allocate memory dynamically using `malloc()`
Difference between a Structure and a Union
# Understanding the Difference Between a Structure and a Union <blockquote "A structure and a union may seem similar, but they have important differences."\> Have you ever wondered about the difference between a `struct` and a `union`? š¤ Don't worry; yo
How do you format an unsigned long long int using printf?
š How to Format an unsigned long long int Using printf? š§ So you have encountered an unexpected result while trying to print an `unsigned long long int` using `printf()`. You're not alone in this struggle! In this blog post, we'll address the common iss
How to allocate aligned memory only using the standard library?
# How to Allocate Aligned Memory Using the Standard Library ⨠Have you ever encountered a situation where you needed to allocate memory and ensure it is aligned to a specific boundary? If so, you're in the right place! In this blog post, we'll explore how





