Merhabalar, bugün size c++ da değerlerin boyutlarının listesini paylaşacağım. Faydalı bir içerik olmasını umuyorum. Hadi Geçelim.
short int : 2 Bytes ---> Aralık : -32,768 to 32,767
unsigned short int : 2 Bytes ---> Aralık : 0 to 65,535
unsigned int : 4 Bytes ---> Aralık : 0 to 4,294,967,295
int : 4 Bytes ---> Aralık : -2,147,483,648 to 2,147,483,647
long int : 4 Bytes ---> Aralık -2,147,483,648 to 2,147,483,647
unsigned long int : 4 Bytes ---> Aralık : 0 to 4,294,967,295
long long int : 8 Bytes ---> Aralık : -(2^63) to (2^63)-1
unsigned long long int : 8 Bytes ---> Aralık : 0 to 18,446,744,073,709,551,615
signed char 1 Bytes ---> Aralık : -128 to 127
unsigned char : 1 Bytes ---> Aralık : 0 to 255
float : 4 Bytes
double : 8
long double : 12
wchar_t : 2 or 4
Kaynak : C++ Data Types - GeeksforGeeks
short int : 2 Bytes ---> Aralık : -32,768 to 32,767
unsigned short int : 2 Bytes ---> Aralık : 0 to 65,535
unsigned int : 4 Bytes ---> Aralık : 0 to 4,294,967,295
int : 4 Bytes ---> Aralık : -2,147,483,648 to 2,147,483,647
long int : 4 Bytes ---> Aralık -2,147,483,648 to 2,147,483,647
unsigned long int : 4 Bytes ---> Aralık : 0 to 4,294,967,295
long long int : 8 Bytes ---> Aralık : -(2^63) to (2^63)-1
unsigned long long int : 8 Bytes ---> Aralık : 0 to 18,446,744,073,709,551,615
signed char 1 Bytes ---> Aralık : -128 to 127
unsigned char : 1 Bytes ---> Aralık : 0 to 255
float : 4 Bytes
double : 8
long double : 12
wchar_t : 2 or 4
Kaynak : C++ Data Types - GeeksforGeeks