C language pointer: Part 2 (character pointer, array pointer, pointer array, pointer parameter passing, array parameter passing design thinking)

1 character pointer A character pointer is a pointer to a character. The type of the pointer is char *; Let's look at a usage: point to a character int main() { char ch = 'a'; char *pc = &ch; return 0; } Analysis: pc is a pointer to the variable char of type char; Another use is to use a character pointer to point to a str ...

Added by pearjam on Thu, 23 Dec 2021 10:40:13 +0200

"C language depth analysis" Chapter 4 pointer and array p3 C language from introduction to soil (Advanced)

catalogue 1. Relationship between pointer and array 1.1 let's start with the conclusion: 1.2. Accessed as a pointer and as an array 1.3 their interviews are so similar. Is that a thing? 1.4 why is C designed like this?   1.5. The difference between a and & A 2. Comparison between pointer and array (original text in the book) (j ...

Added by livvylove on Thu, 23 Dec 2021 07:06:41 +0200

C/C + + 100 questions punch in [5 / 100] - Chorus formation [examination array]

⌛️ Chorus ☁️ Link to previous question: C/C + + 100 questions punch in [4 / 100] - maximum number of fusion ⭐ ️ ⭐ Test mathematics. General contents of 100 punch outs: 🚧 🚧 … 1, Title Overview n n n students st ...

Added by sandgnat on Thu, 23 Dec 2021 01:44:08 +0200

Address book Trilogy

Address Book Implementation Address book requirements Implement an address book; The address book can be used to store the information of 1000 people. Each person's information includes: name, gender, age, telephone and address Provide method: Add contact information Delete specified contact information Find specified contact informati ...

Added by hastishah on Wed, 22 Dec 2021 23:21:22 +0200

Storage (adjacency table) and depth first search of c language data structure diagram

The recent epidemic situation in Xi'an is indeed serious. I received a notice from the school this morning that all students should return to the dormitory for isolation. I hope the epidemic situation will pass as soon as possible. At the same time, I also pay tribute to those epidemic prevention personnel who are fighting on the front line. N ...

Added by tomerg3 on Wed, 22 Dec 2021 22:52:10 +0200

7-2, then what time (15 minutes)

Then what time is it (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. Ca ...

Added by robbyc on Wed, 22 Dec 2021 20:30:21 +0200

Experimental report on data structure and algorithm R of Taiyuan University of Technology

Experiment name (tree) 1, Experiment purpose and requirements Be familiar with various representation methods and traversal methods of trees, master the implementation of relevant algorithms, and understand the application of trees in computer science and other engineering technologies. 2, Experimental content and principle Choose the first ...

Added by cvjacques on Wed, 22 Dec 2021 04:56:23 +0200

Data structure C language version (Yan Weimin) - linear table

1, Definition and characteristics of linear table 1. Definitions A finite sequence consisting of n elements with the same data characteristics is called a linear table N is the length of the linear table. When n=0, it is an empty table 2. Features (non empty linear table or linear structure) Unique "first" data elementUnique ...

Added by lhale on Tue, 21 Dec 2021 07:17:38 +0200

Learning Java multithreading is enough (good article is worth sharing!)

Multi thread learning 1. Multithreading_ concept Multithreading, in short, is multitasking. Inter method call: an ordinary method call is a closed path from where to where. Multithreading: opens up multiple paths. 2. Multithreading_ Inherit Thread There are three ways to create threads: (1) Inherit Thread(2) Implement Runnable interfac ...

Added by smilesmita on Tue, 21 Dec 2021 05:12:22 +0200

15, Linux thread synchronization

15, Linux thread synchronization 1, Thread synchronization concept Thread synchronization is co synchronization, and each thread runs in a predetermined order Thread synchronization means that when a thread makes a function call, the call will not return until the result is obtained. At the same time, other threads cannot call this fun ...

Added by dlf on Mon, 20 Dec 2021 19:59:19 +0200