Data Types in C++
Data Types in C++
C ++ provides following data types :
we can derive data types into three parts:
- Primary data type
- Derived data type.
- user defined data type
Primary data type
It is also known as inbuilt data type.
char :
Size : 1 byte
Range : -128 to 127
unsigned char :
Size : 1 byte
Range : 0 to 255
short or int :
Size : 2 byte
Range : -32,768 to 32,767
unsigned int :
Size : 2 byte
Range : 0 to 65535
May You Like To Read This Related Articles:
What Is Operating System? Knowledge Of OS!!
Operating System As A User Interface And As A Resource Manager - Technopedia!
Services Of Operating System -
Technopedia!!!
Basic Concepts Of OOPC!!
CONCEPT OF DBMS!!
Types Of Operating System - Technopedia!!!
Basic Program Of C Language For Print Hello!!
long :
Size : 4 byte
Range : -2147483648 to 2147483648
unsigned long :
Size : 4 byte
Range : 0 to 4294967295
float :
Size : 4 byte
Range : 3.4e-308 to 3.4e+308
double :
Size : 8 byte
Range : 1.7e-308 to 1.7e+308
long double :
Size : 10 byte
Range : 3.4e-4932 to 1.1e+4932
Derived data type
Array : Array is a fixed sized sequence collection of elements of the same data type.
Function : a group of statements combined into one block for specific purpose.
Pointer : Pointer is a special variable which contains address of another variable.
Recommend Articles For More Information :
Introduction Of C++!!.
Operators In C++
Function Overloading In C++
Data Types in C++
Types Of Constructor In C++
Classes and Objects In C++
What Is Inheritance In C++?
Types Of Inheritance?
Basic Concepts Of OOPC!!
CONCEPT OF DBMS!!
Basic Program Of C Language For Print Hello!!
User Defined data type
An user defined data type is defined by programmer as per his/her requirement.
Structure : Structure is a collection of logically related data of different data types grouped together and known by a single name.
Union : Union is like a structure, except that each elements share the common memory.
Class : Class is a blueprint or prototype from which objects are created.
enum : enum is a user defined type consisting a set of named constants called enumerator.
For More Knowledge Check This Articles For Better Understanding :
Machine Learning Technology in Software Engineering
Trending Pieces Of Technology You Should Know About!!!
CONCEPT OF DBMS!!
Phases Of Compiler In System Programming!!!!
C Program For Addition, Subtraction, Multiplication, Division Of Two Numbers!!
Difference between a monolithic and micro kernel?
Difference Between The Procedure Oriented Language and Object Oriented Language.
What Is Inheritance In C++? Types Of Inheritance?
For More Knowledge Check This Articles For Better Understanding :
Machine Learning Technology in Software Engineering
Trending Pieces Of Technology You Should Know About!!!
CONCEPT OF DBMS!!
Phases Of Compiler In System Programming!!!!
C Program For Addition, Subtraction, Multiplication, Division Of Two Numbers!!
Difference between a monolithic and micro kernel?
Difference Between The Procedure Oriented Language and Object Oriented Language.
What Is Inheritance In C++? Types Of Inheritance?
Comments
Post a Comment