Blog

Page 250 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for How does C compute sin() and other math functions?
c#math

How does C compute sin() and other math functions?

Published on September 2, 2023

πŸ“ **How Does C Compute sin() and Other Math Functions?** Are you also puzzled by the mysterious implementation of `sin()` and other math functions in C? πŸ€” Well, you're not alone! Many developers have wondered where these functions are hiding and how the

Cover Image for What does the constant 0.0039215689 represent?
c#floating-point

What does the constant 0.0039215689 represent?

Published on September 2, 2023

πŸ“ **Blog Post: Understanding the Meaning of the Constant 0.0039215689 in Graphics Header Files** Are you a developer who has come across the constant value 0.0039215689 in graphics header files and wondered what it represents? You're not alone! Many peop

Cover Image for How do malloc() and free() work?
c#memory-management

How do malloc() and free() work?

Published on September 2, 2023

πŸ“ **Tech Blog:** How do malloc() and free() work? πŸ”Ž πŸ‘‹ Hey there, tech enthusiasts! Have you ever wondered about the inner workings of the magic duo 'malloc' and 'free'? πŸ’« In this blog post, we'll dive deep into the memory-level details of these functi

Cover Image for Wrapping a C library in Python: C, Cython or ctypes?
c#python

Wrapping a C library in Python: C, Cython or ctypes?

Published on September 2, 2023

# 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

Cover Image for Structure padding and packing
c#

Structure padding and packing

Published on September 2, 2023

# 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

Cover Image for "register" keyword in C?
c#keywordmemory

"register" keyword in C?

Published on September 2, 2023

# 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

Cover Image for Difference between angle bracket < > and double quotes " " while including header files in C++?
c#

Difference between angle bracket < > and double quotes " " while including header files in C++?

Published on September 2, 2023

πŸ“ **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

Cover Image for How to correctly use the extern keyword in C
c#

How to correctly use the extern keyword in C

Published on September 2, 2023

# 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

Cover Image for This C function should always return false, but it doesn’t
c#gcc

This C function should always return false, but it doesn’t

Published on September 2, 2023

πŸ“ **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

Cover Image for Printing 1 to 1000 without loop or conditionals
c#printf

Printing 1 to 1000 without loop or conditionals

Published on September 2, 2023

πŸ“ 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