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