[Daily C 4] C # preprocessing

Source: Internet
Author: User

C Language # preprocessing of daily C sortingEvery day, I picked up a C-language shell, which grew up and formed thousands of miles.
Today's shell: pre-processing, also called pre-compilation, is the first step for the source code to execute .exe.1.File Inclusion:# Include <> and # include "", for example, # include <stdio. h>. The content of stdio. h file is used for preprocessing.2. macro expansion: # define-defined macros. Preprocessing expands macro references in the source program file into corresponding macro definitions.3. Conditional compilation: # If {}# ifdef and other Conditional compilation commands, pre-processing based on the judgment conditions include part or exclusion part.
 Summary: C compilation has four processes: preprocessing, compilation, assembly, and link. Preprocessing only processes source files at the text level and does not involve content operations. Therefore, there is no difference between variables and functions. Of course, errors at the syntax level are not prompted.Have a nice day!

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.