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