Blog

Page 278 of my articles, tutorials, and thoughts

Latest Articles

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

Cover Image for Extracting bits with a single multiplication
c#

Extracting bits with a single multiplication

Published on September 2, 2023

# 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

Cover Image for Is multiplication and division using shift operators in C actually faster?
c#

Is multiplication and division using shift operators in C actually faster?

Published on September 2, 2023

πŸ” **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

Blog | Matheus Mello