Once the note migration __150717

Source: Internet
Author: User
after the IF statement more than one, apply curly braces {} to organize them together. Such groups are referred to as "compound statements" or "code blocks." If there is only one statement, curly braces {} can be omitted, but not recommended. in the C language, the Else statement is usually matched to the IF statement in the same block that is closest to it and not associated with the else, and the write format is not related to switch, case, and default are keywords, and statements can be simple or compound statements. The expression after switch needs to be enclosed in parentheses, and the subject of the switch statement is enclosed in {} to evaluate the data type of the expression to match the data type of the specified case constant. The expression after switch can contain any variable name, or it can be a constant. The case can be followed only by constants (integer and character).

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Once the note migration __150717

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.