Pointer variable, array pointer, pointer array, level 2 array, function pointer, void pointer
preface
Pointer is not only the key point of c language, but also the difficulty of c language. Generally, we won't make mistakes in the simplest pointer variables. We can encounter pointer array, array pointer, two-dimensional pointer, three-dimensional pointer, function pointer and void pointer. Sometimes it gets confused. Today, I spend a d ...
Added by vivekjain on Mon, 07 Feb 2022 15:06:51 +0200
[final review] ⚡ Exam month is coming! C language review, this one takes you to escape from the hanging section! (end)
I'm back! Less than 4 hours after the last blog post was sent out, this blog post has started again. I hope it will be smooth and smooth. Run away from the hanging section! 😢
If you haven't seen the link in the previous section, you can jump~ C language review (Part I) Oh, this one will follow the last one~
If you need source files, you ca ...
Added by BlackenedSky on Thu, 03 Feb 2022 03:38:21 +0200
Basic tutorial for getting started with C + +: const qualifier and "reference"
Catalogue
preface
1, const qualifier
2, Quote
1 definition of reference
2 reference as function parameter
3 reference function return value
4 nature of reference
5 constant reference
Concluding remarks
preface
Through summarizing the basic knowledge of C + +, the blogger is expected to write a simple C + + basic tutorial column and ...
Added by ohaus on Wed, 02 Feb 2022 11:32:18 +0200
Brother Jiang takes you to play with C language | 13 - one level pointer and multi-level pointer
Basic concepts of pointer
What is the address
Address in life: Memory address: Address and data in memory unit are two completely different concepts
The address is like the room number. According to this number, we can find the corresponding roomMemory units are like rooms, which are dedicated to storing data Variable address:
The ...
Added by fhil85 on Mon, 31 Jan 2022 23:26:51 +0200
Struct, struct variable, struct pointer, string
structural morphology
Array is used to save a group of data of the same type, while structure is used to save a group of arrays of different types Before using a structure, you must first define the structure type, because C language doesn't know what types of data you need to store in your structure. We must tell C language what types of data ...
Added by Code_guy on Sun, 30 Jan 2022 06:28:09 +0200
Implementation of addition, deletion, query and modification of single linked list (described in c language)
Before realizing the basic functions of single linked list, first introduce what is single linked list and the basic idea of adding, deleting, checking and modifying.
1, A brief introduction to linked list and single linked list
(1) Linked list
Overview: each element in the linear table has a unique precursor element and successor element.
...
Added by sh0tgun on Sat, 29 Jan 2022 08:07:16 +0200
Essay -- Summary of preliminary questions of classes and objects (interview)
The difference between object oriented and process oriented
C language is process oriented and focuses on the process. It analyzes the steps to solve the problem and solves the problem step by step through function call. Process oriented is to analyze the steps required to solve the problem, and then use the function to realize these steps ...
Added by pilau on Thu, 27 Jan 2022 19:05:28 +0200
Pointer usage
As we know, adding & before a variable is the address of the variable, and * is the address of the variable.
*Represents the address.
int* a = new int[10]; // It means that the system allocates a continuous piece of memory to store int data, and a is the starting address of this piece of memory.
*a = 10;// It means that the data in the fi ...
Added by dbradbury on Thu, 27 Jan 2022 10:32:49 +0200
week1--Learning functions, pointers, and strings
Some basic knowledge of functions
1. Format of function definition: Return value type function name (parameter list) {
Code Body return x;(x is of type return value) }
For example:
int add(int a,int b) (void Do not use this type return)
{
int sum=a+b;
return sum;
}
Function classification: library function; Functions that come with the sy ...
Added by ICEcoffee on Wed, 19 Jan 2022 19:44:17 +0200
Application of pointer
1, The concept of pointer
The pointer is actually a location where the address is stored. It is the same as the ordinary constant data defined by us. They only store different contents. Therefore, when using the pointer, we need to pay attention to the specific contents we store. In addition, the pointer can store the address of the pointer. ...
Added by Pedro Sim on Thu, 06 Jan 2022 00:44:38 +0200