Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - What does integer variable mean?
What does integer variable mean?

Integer variables are a computer language. In C language, the value of an integer variable can be decimal, octal, or hexadecimal, but it is a binary number stored in memory. As the name suggests, a variable is a variable whose value can be changed. Integer variables represent data of integer type.

Introduction

Long type

The type specifier is long int or long, which occupies 4 bytes in memory, and its value is a long integer constant . In any compilation system, long integers occupy 4 bytes. Under normal circumstances, its number of bytes and value range are the same as those of the basic type.

Unsigned type

The type specifier is unsigned. In the compilation system, the system distinguishes between signed numbers and unsigned numbers. The distinction is based on how to interpret the highest bit in the byte. If the highest bit is interpreted as a data bit, the integer data is represented as an unsigned number.