当前位置:网站首页>Update C language notes
Update C language notes
2022-07-24 05:07:00 【Cc++edge- Qi】
C Language notes
Knowledge points of array !
1. One dimensional array creation and initialization
Array : A collection of elements of the same type !

1. stay VS2019 It's going to report an error !2. Some of them DEV++ Inside can !

The reason is C99 Caused by grammar !
Array creation ( Initialization and full initialization )

References to arrays ! The previous article introduced an operator 【】, This operator is actually an array access subscript operator
To sum up :1. The use of arrays is accessed by subscripts , Note that the subscript is from 0 At the beginning 2. The size of the array can be calculated !
Two dimensional array !!
Represents a two-dimensional array of three rows and four columns !
The second is the initialization of the array : Assign values when creating !
Int char [3][4]={1,2,3,4,5,6,7,8,9,10}; there 【3】 It can't be zero !, It will be explained later !

Remember a little , Incomplete initialization will be assigned to zero !
2. Second, arrays are also accessed through subscripts !

For example :
Mention a sentence ! Two dimensional arrays are stored continuously in memory !
A row is internally continuous , Inter bank is also continuous !

Say operators
Operators also have categories :
- Arithmetic operators !
- The displacement operator

- << >> Shift left operator : Left discard , Zero on the right The same is true of right movement !! Mention the binary representation of integers : Yes 3 Kind of ,
- Original code : The binary sequence written directly according to the value is the original code
- Inverse code : The symbol of the original code remains unchanged , The negation of other bits is the inverse code .
- Complement code : Inverse code +1, It's complement .
- Bit operators :& | ^
- Assignment operator &a
Pointer elementary
The pointer :· Pointer number Point to - Address -( It is also called pointer )

A pointer is a variable used to store addresses ( The values stored in the pointer are treated as addresses )
The pointer is used to store the address , An address is a unique identifier of an address space !
An interesting knowledge point :( The size of the pointer is 32 Bit platform is 4 Bytes , stay 64 Bit platform is 8 Give byte ) This as a ( Just know !)
The meaning of pointer type :
- The type of pointer determines : How much permission does the pointer dereference have !
- The type of pointer determines , The pointer takes one step , How far can I go ( step )

There is a pointer problem that needs to be mentioned : Many people refer to this as a wild pointer , It means uninitialized ,

there P It's a wild pointer !( Also known as crossing the line )
Avoid the wrong use of pointers :
1 Initialization of the pointer .
- Watch out for the pointer .
- Check the valid value before using the pointer .
The operation of the pointer :
- The pointer +- Integers

- The pointer - The pointer

This section mentions debugging skills
The basic steps of debugging :
- Find the existence of program errors
- To isolate , Eliminate and so on
- Determine the cause of the error
- Propose a solution
- Correct procedural errors , To test
stay VS2019 It's particularly obvious 
边栏推荐
- What is the proper resolution of the computer monitor? Introduction to the best resolution of monitors of various sizes and the selection of different wallpapers
- 利用a*启发式搜索解决迷宫寻路问题
- 。单类型数字传感一个应用程.0。 Up- 开址在出厂
- Chapter 0 Introduction to encog
- 浅谈不可转让的声誉积分NFT SBTs面临的困境
- How to solve the engine prompt alias herodb and game engine startup exceptions?
- Sword finger offer special assault edition day 7
- Quick reference manual for the strongest collation of common regular expressions (glory Collection Edition)
- Chapter V communication training
- 连接数%的准确率。现在拟需求。企业在数足以
猜你喜欢

激活函数和最常用的10个激活函数
![[postgraduate entrance examination vocabulary training camp] day 10 - capital, expand, force, adapt, depand](/img/9a/a218c46806cf286f0518a72809e084.png)
[postgraduate entrance examination vocabulary training camp] day 10 - capital, expand, force, adapt, depand

Context encoders: feature learning by painting paper notes

Chiitoitsu (expected DP)

Kingbase v8r6 cluster installation and deployment case - script online one click capacity reduction

Uniapp learning

熊市抄底指南

The difference between run and start in thread class

Want to know how a C program is compiled—— Show you the compilation of the program

Redis enhancements
随机推荐
GOM engine starts M2 prompt: [x-fkgom] has been loaded successfully. What should I do if it gets stuck?
Jiang Xingqun, senior vice president of BOE: aiot technology enables enterprise IOT transformation
472-82 (22, 165, 39, sword finger offer II 078, 48. Rotate image)
[advanced mathematics] the difference between differentiable and differentiable functions
Kingbase v8r6 cluster installation and deployment case - script online one click expansion
Memorandum 2022
How to get the signature file of Baidu Post Bar? Baidu Post Bar signature file setting and use method graphic introduction
Crazy God redis notes 09
[machine learning] - [traditional classification problem] - naive Bayesian classification + logistic regression classification
NLP learning roadmap (mind map) is very comprehensive and clear!
Drools 开发决策表
PHP修改配置文件的两种方法
Wang Qing, director of cloud infrastructure software research and development of Intel (China): Intel's technology development and prospects in cloud native
Add.Eslinctrc.js under SRC for the general format of the project
The difference between run and start in thread class
Why can't I hide folders? Solutions to the hidden folders on the computer that can still be seen
Image painting for irregular holes using partial revolutions paper notes
Chapter 0 Introduction to encog
想知道一个C程序是如何进行编译的吗?——带你认识程序的编译
Hcde city closed door meeting successfully held in Nanjing station