C++ Basic Data Types|Data Type Explain |Tutorial 11| For Beginners |E3 School-2020

 C++ Basic Data Types
What is Data Types?
so you have already learned that Data-Type. Now we will explain the basic data type. So Complete watch video.
Basic Data Types:
1.)Int
2.)Float
3.)Char
4.)Double
5.)String 
6.)Bool
Int(Integer)
👉Size 4 byte in pc
👉Store Whole number 
👉Integer keyword "Int"
👉With-out decimals
For Example
int x=4;

Data Type

Variable

Value

Float

X

4,5,1,2

Float
👉Store 4 byte in PC
👉Store fractional number in PC
👉One or More decimal 
👉Float Keyword 
👉Storing 7 decimal digit
For Example
float x=4.0;

Data Type

Variable

Value

Float

X

4.0,5.4,34.4

Char
👉1-byte store in PC
👉Store single character 
👉Character keyword "Char"
👉Character is surrounded by single quotes '---------'
For Example 
char myName='Letter'

Data Type

Variable

Value

Char

myName

‘Letter’

Double 
👉Store in PC 8-bytes
👉Store Fractional numbers
👉Double Keyword "double"
👉One or more decimal 
👉Storing 15 decimal digit 
String
👉A string is a Collection of character.
👉String not conform size. They are dependent upon the character's length.
👉String Keyword "string"
👉A string surrounded by double quotes "------"
For Example
string myName="Hello World!"
"Hello, World " Store 10 byte in Pc.
Boolean
👉Store Pc 1 byte
👉Bool only two Values 
Example 
True/False    1/0
ON/OFF       1/0
Close/Open   1/0

Post a Comment

Virtually nothing is impossible in this world if you just put your mind to it and maintain a
positive attitude.

أحدث أقدم