range of int
C++
Data Type Range Macro for min value Macro for max value
char -128 to +127 CHAR_MIN CHAR_MAX
short char -128 to +127 SCHAR_MIN SCHAR_MAX
unsigned char 0 to 255 0 UCHAR_MAX
short int -32768 to +32767 SHRT_MIN SHRT_MAX
unsigned short int 0 to 65535 0 USHRT_MAX
int -2147483648 to +2147483647 INT_MIN INT_MAX
unsigned int 0 to 4294967295 0 UINT_MAX
long int -9223372036854775808 to +9223372036854775807 LONG_MIN LONG_MAX
unsigned long int 0 to 18446744073709551615 0 ULONG_MAX
long long int -9223372036854775808 to +9223372036854775807 LLONG_MIN LLONG_MAX
unsigned long long int 0 to 18446744073709551615 0 ULLONG_MAX
float 1.17549e-38 to 3.40282e+38 FLT_MIN FLT_MAX
float(negative) -1.17549e-38 to -3.40282e+38 -FLT_MIN -FLT_MAX
double 2.22507e-308 to 1.79769e+308 DBL_MIN DBL_MAX
double(negative) -2.22507e-308 to -1.79769e+308 -DBL_MIN -DBL_MAX
TypeName Bytes Range of Values
int 4 -2,147,483,648 to 2,147,483,647Type Storage size Value range
signed char 1 byte -128 to 127
int 2 byte -32,768 to 32,767
int 4 bytes -2,147,483,648 to 2,147,483,647
unsigned int 2 bytes 0 to 65,535
unsigned int 4 bytes 0 to 4,294,967,295
short 2 bytes -32,768 to 32,767
Also in C++:
- Title
- c++ convert int to double
- Category
- C++
- Title
- create copy constructor c++
- Category
- C++
- Title
- pointers in cpp
- Category
- C++
- Title
- object slicing in c++
- Category
- C++
- Title
- new c++
- Category
- C++
- Title
- c++ reading string
- Category
- C++
- Title
- c++ pi
- Category
- C++
- Title
- visual studio 2019 read and write text file c++
- Category
- C++
- Title
- what is order in of preeendence in float, int, char, bool
- Category
- C++
- Title
- ceil in c++
- Category
- C++
- Title
- c++ overload operator
- Category
- C++
- Title
- c++ vector iterator
- Category
- C++
- Title
- how to sort a vector in reverse c++
- Category
- C++
- Title
- stl sort in c++
- Category
- C++
- Title
- find in vector in c++
- Category
- C++
- Title
- intersection between vector c++
- Category
- C++
- Title
- fill c++
- Category
- C++
- Title
- iterative inorder traversal
- Category
- C++
- Title
- remove item from layout
- Category
- C++
- Title
- can we compare a long long int with int in c++ using max or min functions
- Category
- C++
- Title
- how to get the prime number in c++ where time complexity is 0(log n)
- Category
- C++
- Title
- unordered_map c++
- Category
- C++
- Title
- Merge k sorted linked lists and return it as one sorted list.
- Category
- C++
- Title
- container class in c++
- Category
- C++
- Title
- constant variables in c++
- Category
- C++
- Title
- heap in cpp stl
- Category
- C++
- Title
- convert decimal to binary in c++
- Category
- C++
- Title
- c++ do you not inherit constructor
- Category
- C++
- Title
- c++ formatting
- Category
- C++
- Title
- nth_element c++
- Category
- C++
- Title
- c++ switch case statement
- Category
- C++
- Title
- c++ method name
- Category
- C++
- Title
- how to find hcf in c++
- Category
- C++
- Title
- c++ read matttrix from text file
- Category
- C++
- Title
- c++ client service ros
- Category
- C++
- Title
- c++ vector lower_bound index
- Category
- C++
- Title
- fast input output in c++
- Category
- C++
- Title
- tuple c++
- Category
- C++
- Title
- function declerations in C++
- Category
- C++
- Title
- c++ typeid get type name
- Category
- C++
- Title
- run cmd command c++
- Category
- C++
- Title
- error: redefinition of ‘class Customer’
- Category
- C++
- Title
- new class * [] c++
- Category
- C++
- Title
- ue4 c++ struct
- Category
- C++
- Title
- Convert binary tree to a doubly linked list
- Category
- C++
- Title
- inverser les éléments d'un tableau manuellement en c++
- Category
- C++
- Title
- pop_back
- Category
- C++
- Title
- git branch in my bash prompt
- Category
- C++
- Title
- cube mapping sdl
- Category
- C++
- Title
- how to append two vectors in c++
- Category
- C++
- Title
- euler's totient function c++
- Category
- C++
- Title
- how to convert qt string to string
- Category
- C++
- Title
- COunt the number of continous subsequences such that the sum is between
- Category
- C++
- Title
- initialize int c++
- Category
- C++
- Title
- matrix transpose tiling
- Category
- C++
- Title
- initialize vector of vector c++
- Category
- C++
- Title
- initialize array c++
- Category
- C++
- Title
- longest common subsequence
- Category
- C++
- Title
- c++ get last element in vector
- Category
- C++
- Title
- how to sort an array c++
- Category
- C++
- Title
- shortest path with bfs in c++
- Category
- C++
- Title
- empty string c++ value
- Category
- C++
- Title
- array syntax in c++
- Category
- C++
- Title
- fmod c++
- Category
- C++
- Title
- queue stl c++
- Category
- C++
- Title
- reverse a linked list using recursion
- Category
- C++
- Title
- how to print nth palindrome number in c++
- Category
- C++
- Title
- flushing output in c++
- Category
- C++
- Title
- elseif c++
- Category
- C++
- Title
- c++ declare variable
- Category
- C++
- Title
- is x prime?
- Category
- C++
- Title
- min coin change problem dp
- Category
- C++
- Title
- how to output text in c++
- Category
- C++
- Title
- how to find the size of a character array in c++
- Category
- C++
- Title
- double to int c++
- Category
- C++
- Title
- substitution failure is not an error
- Category
- C++
- Title
- findung the mode in c++
- Category
- C++
- Title
- else if c++
- Category
- C++
- Title
- C++ cin cout
- Category
- C++
- Title
- how to find the number of cycles in a graph C++
- Category
- C++
- Title
- c++ compare char
- Category
- C++
- Title
- c++ class constructor
- Category
- C++
- Title
- c++ variable argument
- Category
- C++
- Title
- case label in c++
- Category
- C++
- Title
- remove from unordered_set c++
- Category
- C++
- Title
- expected initializer before 'isdigit'|
- Category
- C++
- Title
- never gonna give you up lyrics
- Category
- C++
- Title
- run program until ctrl-d c++
- Category
- C++
- Title
- char* to int in cpp
- Category
- C++
- Title
- how to iterate through array in c++
- Category
- C++
- Title
- c++ function to find length of array
- Category
- C++
- Title
- what are the different ways to traverse a binary tree
- Category
- C++
- Title
- matrix eigen c++ example
- Category
- C++
- Title
- advanced c++ topics
- Category
- C++
- Title
- namespaces c++
- Category
- C++
- Title
- set of vectors c++
- Category
- C++
- Title
- c++ vector add element
- Category
- C++
- Title
- set c++
- Category
- C++
- Title
- free or delete in c++
- Category
- C++
- Title
- how to find the mode of a vector c++
- Category
- C++