Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - If floating point x has the following definition; int a,b; The correct switch statement is
If floating point x has the following definition; int a,b; The correct switch statement is
B the original inscription is not (INT)x, but INT(x), and the int that forces type conversion must have brackets. 1+2 is a constant, which is relative to variables and does not conflict with arithmetic expressions. All formulas that can be determined at the compile stage are constants, not variables.

If a = 1 and b =, switch (a+b) is equivalent to switch (3).

Case 1+2 is equivalent to case 3.

A and B use non-plastic expressions, only plastic expressions can be used in switch, characters will be converted into plastic, only constants can be used in case, and there is a semicolon switch (A-B) behind the switch of D;

Extended data:

Integer integer data is used to store integers, including positive integers, negative integers and zeros.

Integer constants are expressed as decimal integers. For example, 199 1, 0,-123 are all integer constants. While 52.0 or 13 1.4 are not integer constants.

Integer? Variables are stored at the length closest to the compilation environment. For example, in a 32-bit compilation environment, Integer is 32 bits, and its range is between -2 15 and 2 15- 1.

The type declaration character of an integer in VB is a percent sign (%). Pascal is an integer. In c language, it is abbreviated as int.

Baidu encyclopedia-integer