Data Types of C++
Data Types of C++
OF C++
05/22/2023
DEFINITION
• While writing program in any language, you need to use
various variables to store various information. Variables are
nothing but reserved memory locations to store values. This
means that when you create a variable you reserve some
space in memory.
• You may like to store information of various data types like
character, wide character, integer, floating point, double
floating point, boolean etc. Based on the data type of a
variable, the operating system allocates memory and decides
what can be stored in the reserved memory.
PRIMITIVE Type Keyword
Character char
•C++ offers the Integer int
programmer a rich
assortment of built-in as Floating point float
int main() {
std::cout << "Unsigned Long Int Min " << std::numeric_limits<unsigned long int>::min() <<endl;
std::cout << "Unsigned Long Int Max " << std::numeric_limits<unsigned long int>::max() << endl;