Common problems in C language -- four methods of array initialization
Once, Xiaoyi said to me, "have you learned programming?" I nodded slightly. He said, "after learning programming, I'll test you. Should you initialize the array before using the array?"
I thought to myself, is such a simple question worthy of me? ...
Posted by weekenthe9 on Tue, 07 Dec 2021 14:53:28 +0100
Pointer of C language
1. What is the pointer
2. Pointer and pointer type
3. Field pointer
4. Pointer operation
5. Pointers and arrays
6. Secondary pointer
7. Pointer array
1, What is the pointer
What is the pointer? Two key points of pointer understanding:
1. Pointer is the number of the smallest unit in ...
Posted by xeq on Mon, 06 Dec 2021 22:02:32 +0100
C/C + + 100 questions punch in [3 / 100] - Joseph problem
⌛ The origin of Joseph's problem: [finally, we will test it to see if it is correct]
it is said that Joseph, a famous Jewish historian, once had the following story: after the Romans occupied jotapat, 39 Jews hid in a cave with Joseph and his friends. 39 Jews decided that they would rather die than be caught by the enemy, so they dec ...
Posted by j4v1 on Sun, 05 Dec 2021 08:10:14 +0100
Printing function call stack information using backtrace under Linux
Printing function call stack information using backtrace under Linux
Java, Python and other languages have relatively simple methods to print function call stacks. Is there any way to use C language under Linux? It is said that there are many ways. This article introduces the most basic method, that is, using glibc's backtrace() and backtrace_ ...
Posted by debigmac on Sat, 04 Dec 2021 20:25:00 +0100
-uc/OS System Porting
Catalogue of Series Articles
1. Use CubeMX to build STM32F103C8T6HAL Library
Configure RCC Configure SYS Set PC13 to GPIO_Output is used to light up LED lights Set Serial Port USART1 Setup Project Click Generate Code and open the project in Keil.
Add statements to the while loop in the main function
while (1)
{
/* USER CODE ...
Posted by finger on Sat, 04 Dec 2021 19:09:48 +0100
[course assignment] address book management system. I don't know how to write the course assignment. Come quickly
order
Some people will never be together in this life, but there is a feeling that can be hidden in their heart and kept for a lifetime.
Hi, this is fox~~
I haven't seen you for a few days. I went out the day before yesterday. I rested for a day and began to work hard today. Time really flies. 2021 will pass in the twinkling of an eye. I d ...
Posted by Arc on Fri, 03 Dec 2021 13:41:32 +0100
Deep study of C language - 1. Array
catalogue
1, What is an array?
Arrays are divided into one-dimensional arrays and two-dimensional arrays.
Let's see the most basic definition and initialization problems
Now let's talk about some other details
2, I don't have much to say. Let's talk about it.
1, Basic two-dimensional array problem
2, Deep usage of arrays ...
Posted by Edgewalker81 on Thu, 02 Dec 2021 19:52:32 +0100
C Language Chain List Foundation Must Brush 21 Questions - Triple Hammer (Middle)
🌕 Write before
🍊 Blog Home Page: The Background of kikoking's Rivers and Lakes🎉 Welcome to your attention 🔎 Give the thumbs-up 👍 Collection ⭐ Message 📝🌟 This article was originally created by kikokingzz and started by CSDN!📆 Start time: 🌹 02 December 2021 🌹🆕 Latest update time: 🎄 02 December 2021 🎄✉️ Persistence a ...
Posted by Eng65 on Thu, 02 Dec 2021 18:43:28 +0100
C language file operation
1. Read string file
Read string function fgets() Function prototype:
char *fgets(char *str,int n,FILE *fp);
//Its meaning is to read 10 characters from the file referred to in fp, send them into the character array STR, and then print out the str string. If the file cannot read data, it will return NULL and leave the loop at this time.
F ...
Posted by Ozzmosis on Thu, 02 Dec 2021 04:39:53 +0100
SSL in openssl source code_ Read read process parsing
SSL encountered at work_ Read related issues, for SSL_ There are some questions about the read mechanism of read:
SSL_ What is the difference between read and read and recv?.
SSL_ Does read cause the inconsistency between the data to be read and the data actually returned?. SSL_ What is the behavior of read under blocking and non blocking ...
Posted by _confused_ on Thu, 02 Dec 2021 01:11:47 +0100