Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Value range of int in c language
Value range of int in c language
The value range of C language int is 32 bits in a 32/64-bit system, and the value range is-2147483648 ~+2147483647, which is expressed as 0~4294967295 under unsigned conditions.

In C/C++ programming language, int stands for integer variable, which is a data type and is used to define integer variable. It has different sizes in different compilation environments and different compilation and running environments.

The data types of C include integer type, character type, real number type or floating point type (single precision and double precision), enumeration type, array type, structure type, * * * * object type, pointer type and null type.

Basic data type:

Void: Declare that the function has no return value or no parameters, declare that there is no type pointer, and display the result of the discard operation. (C89 standard has been added)

Char: data of character type, which is an integer data. (Introduction to K & ampr Period)

Int: Integer data, which usually represents the length of memory bytes specified by the compiler. (Introduction to K & ampr Period)

Float: Single-precision floating-point data, which belongs to a kind of floating-point data. (Introduction to K & ampr Period)

Double: double-precision floating-point data, which belongs to a kind of floating-point data. (Introduction to K & ampr Period)

_Bool: Boolean type (added in C99 standard)

_Complex: the basic type of complex number (added in C99 standard)

_ imaginary number: imaginary number, similar to the basic type of complex number, and pure imaginary number without real part (added by C99 standard).

_Generic: Provides an overloaded interface entry (added in C 1 1 standard).

Extended data:

1989, ANSI released the first complete C language standard-ANSI X 3.159-1989, which is called "C89" for short, but people are also used to calling it "ANSI C".

C89 was adopted by ISO in 1990. The official name of ISO is ISO/IEC 9899, so ISO/IEC9899: 1990 is usually abbreviated as "C90".

1999, after making some necessary amendments and improvements, ISO released a new C language standard, which was named ISO/IEC 9899: 1999, or "C99" for short.

20 1 165438 On February 8th, ISO officially released a new standard named ISO/IEC9899: 20 1 1 for short, "C 1 1".

References:

Baidu encyclopedia -C language

Baidu encyclopedia -int function