Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Short (C language) detailed data collection
Short (C language) detailed data collection
Short is a family of integer variables defined in C language. There are three kinds of integers in C language, namely short, int and long. Int is an integer, short is a short integer, and long is a long integer.

Basic introduction mbth: short belongs to category: C language type: integer variable Example: short i data type, basic usage, data type In C language, short is a definition of a family of integer variables. For example, short I; ; Represents the variable I that defines a short integer. The length depends on the number of bytes defined by different program compilers. The standard definition of short integer variable should not be less than 16 bits, that is, two bytes. Limits.h in the compiler header folder defines the size that short can represent: short minimum ~ SHRT _ maximum. In 32-bit platforms such as windows(32-bit), the short is generally 16 bits. Basic usage1.c++&; C short is a data type ranging from -32768 to +32767. 2. There are two kinds of * * *: unsigned short I; I can represent 0~65535 signed (default) short I; I can refer to -32768~+32767.