C language static - Introduction to C language zero Foundation

catalogue 1, Introduction to static2, static modifier variable 1.static local static variable2.static global static variable 3, static modifier function4, Guess you like it Zero foundation C/C + + learning route recommendation: C/C + + Learning directory >> Introduction to basic C language 1, Introduction to static stay C lang ...

Posted by exnet on Fri, 24 Sep 2021 18:06:00 -0700

[C language] super detailed explanation ☀️ What kind of needle is the pointer? (solve the pointer problem at one time) (advanced level of pointer)

What is the needle in front? This article has written the basic knowledge of pointers, and then through this article to have a deeper understanding of pointers catalogue   1, Character pointer   2, Pointer array 3, Array pointer Array name and & array name Use of array pointers 4, Function pointer Function address Funct ...

Posted by danwatt on Fri, 24 Sep 2021 16:49:02 -0700

C Language Notes - Chapter 1 Dynamic Memory Management

Introduce: Why use dynamic memory allocation int a = 20;char arr[10] = {0}; Space opened up above: 1.Space development size is fixed. 2.When declaring an array, you must specify the length of the array, and the memory it needs is allocated at compile time. Sometimes the size of space we need is only known when the program is running (fo ...

Posted by fourlincoln10 on Fri, 24 Sep 2021 09:07:52 -0700

C language knowledge commonly used by JNI

1, Pointers and arrays 1. Ordinary pointer The pointer is the memory address where the variable is stored. It has a type, and the address has no type. int main(int argc, char const* argv[]) { //Define variables int i = 90; //Define pointer p and take address character for variable i int *p = &i; float fi = 0.8f; ...

Posted by davidp on Thu, 23 Sep 2021 06:30:30 -0700

Advanced C language: custom types

Custom type C language itself has built-in types such as int, float, double... And also provides customizable custom types or construction types such as structure, enumeration and union. structural morphology A structure is a collection of values that are collectively referred to as member variables. Each member of the structure can ...

Posted by rupturedtoad on Thu, 23 Sep 2021 02:14:06 -0700

Detailed explanation of user-defined type: structure (memory alignment, bit segment) + enumeration + Union

Data type: C language built-in type: — char short int long float double Custom type / construction type: - structure, enumeration, union Data storage - type details 1, Structure 1. Special declaration When declaring a structure, you can declare it incompletely Anonymous structure struct { int a; char c; double d; }s1, s2; ...

Posted by pgudge on Wed, 22 Sep 2021 09:53:31 -0700

Custom structure type and implementation of telephone address book

  CSDN's friends, Happy Mid Autumn Festival!   I've sorted out what I learned today and shared it with you. It's regarded as a mid autumn festival gift. 1, Structure struct Node{ int data; Struct Node n; }//The defect of this definition is that there is a node in each node, which recurses to infinity continuously, and the r ...

Posted by bills50000 on Tue, 21 Sep 2021 16:45:35 -0700

Data structure C language implementation sequence table -- detailed explanation of addition, deletion, query and modification operation

Sequence table What is the sequence table? Sequence table is to store elements in a continuous storage area in sequence, and the sequence relationship between elements is naturally represented by their storage order. Realize the function of adding, deleting, checking and modifying. Header file required for sequence table: #include<st ...

Posted by iRock on Tue, 21 Sep 2021 14:46:02 -0700

C language programming -- Summary of learning knowledge

---------------------------- array Definition and reference of one-dimensional array Define a one-dimensional array (type specifier array name [constant expression] is similar to int a [10]) 1. Continuously allocate storage space for n variables 2. All variable data types must be the same 3. The byte size occupied by all variables must b ...

Posted by simply on Tue, 21 Sep 2021 12:49:07 -0700

C language character function and string function should learn like this!!!

preface **This article introduces character functions and string functions, from 0 to proficient, how to reference to how to simulate the implementation. In C language, we often operate on strings, so we can call many library functions directly. However, if we want to deeply understand C language, we need to know how to realize its princip ...

Posted by superman on Tue, 21 Sep 2021 12:07:23 -0700