Blog

Page 706 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Why should we typedef a struct so often in C?
c#

Why should we typedef a struct so often in C?

Published on September 2, 2023

# Why should we typedef a struct so often in C? šŸ¤” I have seen many programs consisting of structures like the one below šŸ‘‡ ``` typedef struct { int i; char k; } elem; elem user; ``` Why is it needed so often? Any specific reason or applicable

Cover Image for Why are hexadecimal numbers prefixed with 0x?
c#syntax

Why are hexadecimal numbers prefixed with 0x?

Published on September 2, 2023

šŸ“ **Why are hexadecimal numbers prefixed with 0x?** You've probably encountered hexadecimal numbers before, those funky numbers that use digits ranging from 0 to 9 and letters from A to F. But have you ever wondered why these numbers are often prefixed w

Cover Image for How would one write object-oriented code in C?
c#objectoop

How would one write object-oriented code in C?

Published on September 2, 2023

# šŸŽÆ Object-Oriented Code in C: Unleash Polymorphism! šŸ±ā€šŸ‘¤ So you want to get started with object-oriented programming in C? šŸ¤” Awesome! šŸŽ‰ Even though C is not an object-oriented language šŸ™…ā€ā™‚ļø, you can definitely achieve object-oriented principles like

Cover Image for Why is volatile needed in C?
c#

Why is volatile needed in C?

Published on September 2, 2023

# Why is `volatile` needed in C? šŸ¤” When working with the C programming language, you may come across the keyword `volatile`. At first glance, it might seem confusing and unnecessary. However, `volatile` plays a crucial role in certain scenarios. In this

Cover Image for Programmatically find the number of cores on a machine
c#multithreading

Programmatically find the number of cores on a machine

Published on September 2, 2023

# 🧐 How to Find the Number of Cores on your Machine šŸ–„ļø Are you curious about how to programmatically find the number of cores on your machine? šŸ¤” Look no further! In this blog post, we will address this common question and provide you with easy solution

Cover Image for What are .a and .so files?
c#

What are .a and .so files?

Published on September 2, 2023

āœØšŸ“œ Understanding .a and .so Files: Demystifying Building and Running Applications šŸ—ļøšŸ’» Are you feeling lost in the world of C applications while trying to port your code to AIX? Fear not! Today, we'll unravel the mystery of .a and .so files, helping you

Cover Image for Typedef function pointer?
c#

Typedef function pointer?

Published on September 2, 2023

# Typedef Function Pointer: Demystified! šŸ¤” šŸ’” šŸ‘‹ Hey there! Are you struggling to understand the concept of `typedef function pointer`? Don't worry, you're not alone! Many developers find it confusing at first, but with a little guidance, it'll all make

Cover Image for Debug vs Release in CMake
c#gcc

Debug vs Release in CMake

Published on September 2, 2023

# šŸ› Debug vs Release in CMake: A Comprehensive Guide When working on a GCC compiled project, understanding the difference between debug and release builds is crucial for efficient development. In this blog post, we will dive into common issues related to

Cover Image for What"s the best way to check if a file exists in C?
c#filesystems

What"s the best way to check if a file exists in C?

Published on September 2, 2023

# šŸ“ The Best Way to Check If a File Exists in C šŸ“‚ Are you tired of struggling to check if a file exists in your C program? šŸ¤” Don't worry! In this blog post, we'll explore the common issues and provide you with easy solutions to help you determine the b

Blog | Matheus Mello