Blog
Page 278 of my articles, tutorials, and thoughts
Latest Articles
Wrapping a C library in Python: C, Cython or ctypes?
# Wrapping a C Library in Python: C, Cython, or ctypes? So you want to call a C library from your Python application, but you don't want to wrap the whole API, just the relevant parts. Well, you have three choices: π€ 1. **Create an actual extension modu
Structure padding and packing
# The Art of Structure Padding and Packing: Cracking the Code! π Hey there tech enthusiasts! Have you ever come across those puzzling questions about structure padding and packing and wondered what they were all about? π€ Well, fear no more! Strap in, be
"register" keyword in C?
# The Mysterious "register" Keyword in C: A Guide to Optimizing Your Code π Have you ever come across the intriguing `register` keyword while working with C? π€ It's like an enigma wrapped inside a mystery! Let's unravel this mystery and discover how thi
Difference between angle bracket < > and double quotes " " while including header files in C++?
π **Tech Blog**: Understanding the Difference between Angle Brackets \< \> and Double Quotes " " when Including Header Files in C++ π Hey there, fellow coders! Have you ever wondered why sometimes we use angle brackets \< \> and other times we use doubl
How to correctly use the extern keyword in C
# How to correctly use the `extern` keyword in C π Are you confused about the `extern` keyword in C? π You're not alone! Many developers find it tricky to understand when and how to use it. But fear not! In this blog post, we'll demystify the `extern` k
This C function should always return false, but it doesnβt
π **Blog Post: Why does this C function return true when it should be false? π€** Hey there tech enthusiasts! π Are you ready for another mind-boggling coding mystery? π΅οΈββοΈ Today, we're going to dig into a puzzling question that seems to defy logic. S
Printing 1 to 1000 without loop or conditionals
π Ahoy there, tech enthusiasts! π Welcome to another exciting blog post where we unravel mind-boggling coding challenges. Today, we will tackle a question that might seem impossible at first glance β printing numbers from 1 to 1000 without using any loop
Extracting bits with a single multiplication
# Extracting Bits with a Single Multiplication π§© Have you ever come across a situation where you needed to extract specific bits from a 64-bit integer? It can be quite a challenging task, but fear not! In this blog post, we will explore a fascinating tec
Is multiplication and division using shift operators in C actually faster?
π **Is multiplication and division using shift operators in C actually faster? π** Are you tired of those long, boring multiplication and division operations? Well, you're in luck! In the world of C programming, there exists a magical technique that can




