Blog

Page 634 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Static linking vs dynamic linking
c#performance

Static linking vs dynamic linking

Published on September 2, 2023

# Static Linking vs Dynamic Linking: Unraveling the Performance Mystery šŸš€ Have you ever wondered what the buzz is all about when it comes to static linking vs dynamic linking? Are you looking to optimize your program's performance, but don't know which a

Cover Image for What is array to pointer decay?
arraysc#

What is array to pointer decay?

Published on September 2, 2023

# šŸ¤” Demystifying Array to Pointer Decay: An Essential Guide 🧐 šŸ“ Introduction: Welcome to another exciting blog post where we unravel the mysteries of the coding universe! Today, we'll be diving deep into the concept of "Array to Pointer Decay" and expl

Cover Image for Why is the use of alloca() not considered good practice?
c#

Why is the use of alloca() not considered good practice?

Published on September 2, 2023

šŸ–‹ļø **Title: The Dark Side of alloca(): Why It's Not Considered Good Practice** Introduction: Hey there tech enthusiasts! šŸ‘‹ Let's dive into an interesting topic today: the not-so-beloved function š‘Žš‘™š‘™š‘œš‘š‘Ž(). Have you ever wondered why using š‘Žš‘™š‘™š‘œļæ½

Cover Image for When is assembly faster than C?
c#performance

When is assembly faster than C?

Published on September 2, 2023

# When is assembly faster than C? šŸ˜®šŸ’Ø Have you ever wondered if writing code in assembly language can actually be faster than using a higher-level language like C? šŸ¤” While it's commonly believed that assembly can outperform C, it's important to note tha

Cover Image for C pointer to array/array of pointers disambiguation
arraysc#

C pointer to array/array of pointers disambiguation

Published on September 2, 2023

šŸ“ **Understanding C Pointers and Arrays: Demystifying Ambiguous Declarations** šŸ§šŸ’” Hello there, fellow tech enthusiasts! šŸ‘‹šŸ¤“ Are you struggling to decipher the meaning behind those seemingly confusing C declarations involving pointers and arrays? Fear

Cover Image for What is the difference between using a Makefile and CMake to compile the code?
c#

What is the difference between using a Makefile and CMake to compile the code?

Published on September 2, 2023

# What's the Deal with Makefile and CMake? šŸ¤”šŸ”§ If you're coding in C/C++ and have been using a Makefile to compile your code, you might have heard about CMake and wondered what the difference is between the two. šŸ¤·ā€ā™€ļø In this blog post, we'll dive into

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