Why Embedded C Language Experts Prefer void*?

Why Embedded C Language Experts Prefer void*?

As a C language developer, have you ever faced the problem of needing to implement a generic linked list, only to find that you must write the code separately for each data type? Or designing a callback function but not knowing how to handle various types of parameters? The root of these issues lies in … Read more

C Language Learning Notes: 21. Bitwise Operators – Common Usages and Techniques

C Language Learning Notes: 21. Bitwise Operators - Common Usages and Techniques

“From today on, study hard and make progress every day” Repetition is the best method for memory; spend one minute each day to remember the basics of C language. “C Language Beginner’s Essential Knowledge Notes Series of 100 Articles”“ 21. Bitwise Operators, Summary of Common Usages and Techniques 1. Basic Syntax of Bitwise Operators Bitwise … Read more

Understanding the Concept of Pointers in C Language in One Minute

Understanding the Concept of Pointers in C Language in One Minute

What is a pointer in C language? In C language, a pointer is a variable that stores the memory address of another variable. Each variable has a unique address in memory, and a pointer is used to store this address. Through pointers, we can directly access and manipulate data in memory. How to use pointers … Read more

Mastering C Language: Creating a Pulsating Heart Pattern with C Language is So Simple

Mastering C Language: Creating a Pulsating Heart Pattern with C Language is So Simple

“From today on, study hard and make progress every day” Repetition is the best method for memory; spend one minute every day to remember the basics of C language. “Mastering C Language:C Language Graphics Programming and Game Development“ Mastering C Language: Creating a Pulsating Heart Pattern with C Language is So Simple Preface of this … Read more

Mastering C Language Comments: Let Your Code Speak!

Mastering C Language Comments: Let Your Code Speak!

There is an old saying:“A good memory is not as good as a bad pen.” This saying is equally true in the programming world. The code we write may be forgotten by ourselves months later, and to avoid future frustration, we need to learn to use a very important tool——comments。 01 What are comments? The“invisible … Read more

Essential Knowledge Points for Embedded C Programming

Essential Knowledge Points for Embedded C Programming

① The Compilation Process of C Language.c files are transformed into executable files through four stages: preprocessing, compilation, assembly, and linking.(1) Preprocessing: Includes header file inclusion, macro replacement, conditional compilation, and comment removal.(2) Compilation: The C language is translated into assembly, outputting a .s assembly file;(3) Assembly: The assembly file is translated into binary, outputting … Read more

Why the Status of C Language in Embedded Technology is Unshakable?

Why the Status of C Language in Embedded Technology is Unshakable?

I am Lao Wen, an embedded engineer who loves learning.Follow me, and let’s become better together!Today, we will discuss the status of the C language in the field of embedded technology.In the embedded technology ecosystem, the combination of “C language + hardware” is like “binary + transistors” in computer technology, serving as the foundational cornerstone … Read more

Introduction to C Language

Introduction to C Language

Continuing from the last time! Last time we discussed break and continue, leaving two pieces of code! The result of the first piece: 01234 Explanation: When i++ reaches 5, break is executed, and the code exits the loop, ending! The result of the second piece: 12346789 Explanation: When i++ reaches 5, continue is executed, the … Read more

C Language Learning Notes: Logical Operators – Simple Yet Common Mistakes Beginners Make

C Language Learning Notes: Logical Operators - Simple Yet Common Mistakes Beginners Make

“From today on, study hard and make progress every day” Repetition is the best method for memory; spend one minute each day to remember the basics of C language. “C Language Beginner’s Essential Knowledge Notes Series – 100 Articles” 20. Logical Operators: AND, OR, NOT (&&, ||, !), very simple, but there are two mistakes … Read more

C Language Naming Beyond ‘Hundred Family Surnames’: Discussing the ‘Hidden Rules’ Known Only to Experts

C Language Naming Beyond 'Hundred Family Surnames': Discussing the 'Hidden Rules' Known Only to Experts

In the last lesson, we used the metaphor of “Hundred Family Surnames” to easily grasp the basic rules of C language identifiers. We learned that names must start with a letter or an underscore, can be followed by numbers, but cannot use keywords. However, this is just the “beginner’s guide” to the art of naming … Read more