Branch and loop statements

1. What is a statement? Inside the main() function are instructions and related data arranged in order. We can understand these instructions and data as commands we send to the computer. In programming languages, we call such commands statements. C statements can be divided into the following five categories: Expression statement ...

Posted by love_php on Wed, 13 Apr 2022 05:11:58 +0300

[C] Beginner's little difficulty ~ linked list~

Recently, I began to understand the structure of c language, including the concept of linked list. Preliminary understanding of his implementation. Now let me share with you how to learn the linked list. catalogue [1] Basic concepts of linked list [2] Static linked list 1. We first create a structure as the node data type. 2. Create node ...

Posted by chrispols on Tue, 12 Apr 2022 22:22:55 +0300

STM32F407 realizes key control periodic square wave switching output

catalogue preface 1, Change timer settings 2, Interrupt program summary preface The book continued last time. After completing the key control flow lamp, I had a new understanding of the interrupt system, so the key control square wave output became simple this time. Next, let's look at the specific task: generate square wave with ...

Posted by Youko on Tue, 12 Apr 2022 21:55:19 +0300

Advanced C language: detailed explanation of user-defined types

catalogue structural morphology 1. Declaration of structure 1.1 basic knowledge of structure 1.2 declaration of structure 1.3 special declaration 1.4 self reference of structure 1.5 definition and initialization of structure variables 1.6 structure memory alignment 1.7 modify the default alignment number 1.8 structural transmission pa ...

Posted by Gast on Tue, 12 Apr 2022 06:31:26 +0300

[question brushing diary] classic questions must be brushed for the introduction of C + +

😀 Hello, I'm Bai Chen. I'm not very able to stay up late 😫, But people who want to get better ✈. If you like this article, give it a compliment 👍, Pay attention 👀 Bai Chen! Your support is my biggest motivation! 💪💪💪 🏹 preface Bai Chen reviewed my C + + learning journey during this period and found many bumps and difficulties. Ther ...

Posted by carrot on Tue, 12 Apr 2022 05:18:24 +0300

The most complete difference between sizeof and strlen

Today, Jieyuan brings you the use and difference between sizeof and strlen brief introduction 1.sizeof Sizeof is a built-in operator of C language, which gives the size of the specified type in bytes. C99 and C11 provide%zd conversion descriptions to match the return type of sizeof. Some compilers that do not support C99 and C11 ...

Posted by crob611 on Tue, 12 Apr 2022 03:01:51 +0300

Implementation principle of malloc and free under glibc: tcache mechanism

Implementation principle of malloc and free under glibc (4): tcache 1, Overview tcache is a new mechanism introduced after a certain version of glibc to improve the performance of heap management. In fact, when we use pwndbg to debug heap related programs now, we will find that many free chunk s are classified as tcache Many vulnerabilities ...

Posted by cesarcesar on Mon, 11 Apr 2022 14:42:57 +0300

GStreamer Tutorial Chinese Translation: Basic tutorial 3: Dynamic pipelines

GStreamer Tutorial 3 Chinese Translation preface Due to work reasons, the image decoding library of GStreamer is used, so the Chinese translation and personal understanding of GStreamer Tutorial are recorded for learning. If there are deficiencies, please give more advice. Invasion and deletion. Basic tutorial 3: Dynamic pipelines ...

Posted by Stevan on Mon, 11 Apr 2022 09:48:28 +0300

Installation steps, basic commands and related functions of Ubuntu Linux C sqlite3

catalogue sqlite3 installation steps sqlite3 basic commands Enter sqlite mode command System command (point command -- with "." (beginning) sqlite statement (with ";) (end) sqlite related functions C/C + + interface (header file #include) sqlite3_open() sqlite3_close() sqlite3_exec() Callback function: sqlite3_get_tabl ...

Posted by affordit on Mon, 11 Apr 2022 09:22:29 +0300

Letter combination of telephone number

Title Description Given a string containing only the numbers , 2-9 , returns all the letter combinations it can represent. The answers can be returned in any order. The mapping of numbers to letters is given as follows (the same as telephone keys). Note that 1 does not correspond to any letter. Example 1: Input: digits = "23&quot ...

Posted by smoked1 on Mon, 11 Apr 2022 08:29:23 +0300