Fundamentals of C language

1.C Language Overview 1.1 why learn C language 1.1. 1. Characteristics of C language 1) Advantages: Small amount of codeFast execution speedPowerfulProgramming Freedom 2) Disadvantages: Long code writing cyclePoor portabilityToo free, inexperienced and error proneMore dependence on platform Libraries 1.1. 2. Simplicity of C language C l ...

Added by PFMaBiSmAd on Mon, 20 Dec 2021 11:40:45 +0200

Memory allocation of C program based on ubuntu, raspberry pie and stm32

1, Memory allocation of C program stack area It is automatically allocated and released by the compiler to store the parameter values of functions and the values of local variables. Its operation is similar to the stack in the data structure. heap Generally, it is allocated and released by the programmer. If the programmer does not release it, ...

Added by M2tM on Mon, 20 Dec 2021 04:51:00 +0200

Universal search - 2 Save xiaoha

2. Save xiaoha Task: The maze consists of n rows and m columns of cells (n and m are less than or equal to 50), and each cell is either an open space or an obstacle. The task is to help Xiao hum find the shortest path from the beginning of the maze to Xiao ha's location. Pay attention to the obstacles. Of course, Xiao hum can't go out of the ...

Added by MikeFairbrother on Sun, 19 Dec 2021 21:50:42 +0200

Linux Kernel Schema Resolution - Linux file associations with processes

The relationship between a process and its open file If the file management system is the manager and provider of the file, then the process is the user of the file in the file system. That is, the relationship between the file management system and the process is the relationship between the service and the customer. File object When a proce ...

Added by vikela on Sun, 19 Dec 2021 20:04:39 +0200

Memory allocation of heap, stack, global, local and other variables in C programs under Ubuntu and stm32

1, Memory distribution 1. Address details In an STM32 program code, stack area, heap area, global area (static area), constant area and code area are successively distributed from high memory address to low memory address, in which. bss segment is distributed in high address and. data segment is distributed in low address. The total distr ...

Added by gaogier on Sun, 19 Dec 2021 19:10:53 +0200

โ‘  Complete collection of classic algorithms in C language โ˜… (recommended Collection) โˆš

โ‘  Complete collection of classic algorithms in C language (recommended Collection) ๐Ÿ‘ˆ one ๐Ÿ’œ Tower of Hanoi explain The towers of Hanoi was brought to France by French M.Claus(Lucas) from Thailand in 1883. Hanoi was the capital of North Vietnam during the Vietnam War, which is now Ho Chi Minh City; In 1883, the French mathematician ...

Added by mightymouse on Sun, 19 Dec 2021 18:56:04 +0200

SOFT3410 - C language in system programming

Core Dump/Segmentation Fault core dump caused by modifying constants char *q = "cannot be modified."; *(q + 1) = 'A';//Modified string literal 1 pointer 1.1 Dangling pointers Pointer to the memory area that has been freed. As shown below, the local variable of the sub function has been released, but its reference is returned to a poin ...

Added by genericnumber1 on Sun, 19 Dec 2021 09:25:20 +0200

Learning notes on data structure and algorithm -- circular linked list and bidirectional linked list

Data structure and algorithm learning notes (C language) Circular linked list 1. Definition: circular linked list is another form of linked storage structure. Its feature is that the pointer field of the last node in the table points to the head node, and the whole linked list forms a ring. If the circular linked list is an empty list, the ne ...

Added by hasek522 on Sun, 19 Dec 2021 05:56:20 +0200

C language input and output examples

Input and output exercises in online programming of C language A+B(1) Time limit: 1 second for C / C + + and 2 seconds for other languages Space limitation: C/C++ 256M, other languages 512M Input Description: the input includes two positive integers a and B (1 < = a, B < = 10 ^ 9), and the input data includes multiple groups. ...

Added by jjk-duffy on Sun, 19 Dec 2021 02:03:05 +0200

The 10th day of STD high level language programming (and the last day!!! Full Score answer, with my program analysis and pit mark)

7-1, then what time (15 minutes) Sometimes people use four digits to represent a time. For example, 1106 means 11:06. Now, your program calculates the end time based on the start time and the elapsed time. Read in two numbers. The first number represents the current time with such four digits, and the second number represents the minutes. ...

Added by corporateboy on Sat, 18 Dec 2021 21:14:54 +0200