C Quick Start series (9) and c Quick Start Series

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.