Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - C language several judgments, please help heroes!
C language several judgments, please help heroes!
1, two variables often exchange data with a working variable; //Error, "working variable" is changed to "temporary variable".

2. The value of the expression in parentheses after 2.switch and the value of the constant expression after case must be integers or numbers, and floating-point types are not allowed; //Correct.

3. Loop for (; ; ) is always true; //error. Can be false, and exit the loop when it is false.

4. When the break statement is executed, it exits the loop at this level, and the continue statement ends the loop. //Correct.

5. In C language, when the format character "%s" is used to input a character array, the array & cannot be preceded by & //Correct.

6. In the description of function prototype, omitting formal parameter variables or writing formal parameter variables with other names will not affect the correctness of the program. //Correct.

7. When the real parameter is transferred to the shape parameter, the direction of numerical transfer is unidirectional, that is, the change of the value of the shape parameter variable does not affect the value of the real parameter variable; //Correct.

8. In C language, the members of a structure can be one-dimensional arrays or multidimensional arrays. //Correct.