Blog

Page 705 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for How does free know how much to free?
c#

How does free know how much to free?

Published on September 2, 2023

# šŸ†“ How does free know how much to free? šŸ¤” Ever wondered how the `free` function magically knows how much memory to release back into the wild? šŸ§™ Well, you're not alone! Many programmers have had this burning question. In this blog post, we'll uncover

Cover Image for Preventing console window from closing on Visual Studio C/C++ Console application
c#

Preventing console window from closing on Visual Studio C/C++ Console application

Published on September 2, 2023

# šŸš€ Keeping the Console Window Open in Visual Studio C/C++ Console Application Hey there, console application developers! šŸ‘‹ If you're using Visual Studio for the first time to develop a console application and the console window keeps closing as soon a

Cover Image for How can one print a size_t variable portably using the printf family?
c#printf

How can one print a size_t variable portably using the printf family?

Published on September 2, 2023

# Printing a `size_t` variable portably using the `printf` family So, you want to print a `size_t` variable using `printf()` and make sure it compiles without warnings on both 32-bit and 64-bit machines? šŸ¤” No worries, I've got you covered! In this blog p

Cover Image for What is the difference between float and double?
c#floating-pointprecision

What is the difference between float and double?

Published on September 2, 2023

### šŸš€ The Float and Double Dilemma: Unraveling the Differences! 🧐 Have you ever felt puzzled by the terms "float" and "double" when it comes to data types in programming šŸ’»? Perhaps you've even wondered, "Are they just interchangeable? Do they affect th

Cover Image for How do you get assembler output from C/C++ source in GCC?
c#gcc

How do you get assembler output from C/C++ source in GCC?

Published on September 2, 2023

# How to Get Assembly Output from C/C++ Source in GCC So, you want to understand how your C/C++ code is getting compiled? That's awesome! It's always good to dive deep into the magic happening behind the scenes. šŸ˜Ž When it comes to getting the assembly o

Cover Image for Is there a performance difference between i++ and ++i in C?
c#oopperformance

Is there a performance difference between i++ and ++i in C?

Published on September 2, 2023

# šŸš€ āœļø The Ultimate Guide: Performance Difference Between `i++` and `++i` in C šŸ•¶ļø Hey there tech enthusiasts! šŸ‘‹ Welcome back to my tech blog, where we break down complex problems into digestible bits. Today, we're delving into the age-old question: Is

Cover Image for Why does sizeof(x++) not increment x?
c#

Why does sizeof(x++) not increment x?

Published on September 2, 2023

# Why does `sizeof(x++)` not increment `x`? šŸ“ Hey tech enthusiasts! Welcome back to our tech blog, where we unravel complicated coding concepts and make them easy to understand. Today, let's dive into a puzzling question about the behavior of the `sizeof

Cover Image for Undefined reference to pthread_create in Linux
c#multithreading

Undefined reference to pthread_create in Linux

Published on September 2, 2023

# Understanding the Undefined Reference to `pthread_create` in Linux Error So, you've stumbled upon an error message that reads **"undefined reference to `pthread_create`"** when trying to compile your code on Linux. Frustrating, isn't it? But fret not! I

Cover Image for What is an unsigned char?
c#char

What is an unsigned char?

Published on September 2, 2023

# Understanding the Unsigned Char: A Byte of Unconventional Power! šŸ’ŖšŸ˜Ž Are you ready to unlock the secrets of a powerful data type in C/C++? Brace yourselves, because today we're diving into the fascinating world of the `unsigned char`! šŸš€āœØ But wait, wh

Blog | Matheus Mello