C Quick Start series (9) and c Quick Start Series
C Quick Start series (9)
--- Reprinted with the source: coder-pig
C Knowledge Point Collection
This section introduces:
The C language series is coming to an end. In the previous eight sections, we learned the basic syntax and Data Type of C,
Three program structures (sequence, Judgment, loop), array, function, pointer, struct, shared body, bitwise operation, file, etc,
This section will supplement the missing knowledge points of C that have not been mentioned earlier. Of course, the missing knowledge points will also be updated!
Thank you for your support. After talking about so many theories, there is a lack of integration. In section 10, we will write
Text row student information management system! I believe it is the end assignment of C language for many schools! Of course, the Code is not directly pasted.
Instead, we use flowcharts, annotations, and so on to help readers understand what they are writing at a glance! Instead of code!
Coming soon ~
Ps: If you find any omissions after reading this tutorial, please point out, thank you!
Body:
I. Scope and lifecycle of Variables
Ii. Compile preprocessing
Summary of this chapter:
① Variable
1. Scope of variables: local variables and global variables
2. Life Cycle: auto (automatic variable), static (static variable), register (register variable), extern (external variable)
② Compile preprocessing
1. What is preprocessing?
2. macro definition: define has no parameters and has Parameters
3. File Inclusion: # include <XXX> and # include "XXX"
4. Conditional compilation: # ifdef, # ifndef, # if
How to get started with C language
To get started, you just need to know the data type, several Syntax structures, and C language writing formats. Others mainly depend on your own thinking (that is, the algorithm), and user-defined functions.
How to get started with C language
Programming Languages have gone through machine languages (mainly relying on humans to manually complete machine commands) _ assembly languages _ C languages _ advanced languages
C language is a programming language between low-level and high-level languages. People are used to classify C language as a high-level language.
Although most people do not use the C language for programming now, the C language is a good tutorial for beginners to get started quickly. after learning the C language, it will be of great help to learn other advanced languages in the future!
For more details, I think you should buy C-language textbooks and look for Tan haoqiang! I didn't advertise. I just learned the C language and used his book!