"Macro" in C Language"

Source: Internet
Author: User
The macro definition in C language is: Define
The define macro definition in C language is in the form of parameters or parameters.
The format without parameters is: # define macro name string
The parameter format is: # define macro name (parameter 1, parameter 2,...) String
In the C language, macro definitions only use macro names instead of syntax checks. Therefore, they are not c statements. Therefore, you do not need to add ";" to macro definitions ";"
Macros are also called preprocessing commands in c, because macros are ProgramThe character is replaced before compilation, so it is called preprocessing. There are other preprocessing commands in c, such:
# Define
# UNDEF
# Ifdef
And so on.

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.