Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Is there a difference between long integer constants and integer constants in VB language?
Is there a difference between long integer constants and integer constants in VB language?
Individually, there is no difference between long integer 1 and integer integer 1, but it will be different as long as it is used for calculation (this is almost certain). At this time, constants and variables are the same, and the inconsistency of variable types may lead to overflow or other errors.

Followed by&; In fact, it is a shortcut to variable type description, and it is not necessary.

The abbreviation of long integer is&; The short definition of an integer is%. For example, the following two sentences are equivalent:

Dim n as long

Dim n &