#Mastery09 #TC1017 Basic Types C++

Why is important declared variables?

because in that way you are saying the kind of the data and how that data will be called. 

This is the basic types for C++ so, please be careful when you are using like

int main {}

int

double

// You can use whichever you want but!! following the right variable for the quantity you will recieve!

 

https://www.dropbox.com/s/01wo97zpmjpm4nc/Mastery09.mov?dl=0

•ENTEROS
–byte   0 -> 255
–short   -32,768 -> 32,767
–int   -2,147,483,648 –> 2,147,483,647
–long  -9,223,372,036,854,775,808 -> 9,223,372,036,854,775,807

• REALES

  –   decimal

–float 1.5 E-45 –> 3.4E38
–double 5.0E-3424 –> 1.7E308
–

• TIPO MONETARIO

–decimal 1.0 E-28 –> 7.9E28

• Datos de tipo CARACTER

–Char    ‘a’    ‘s’    ‘N’     ‘1’     ‘$’
–

• Datos de tipo CADENA DE CARACTERES

–String  “Alejandra Jacobo”
–

• Boleano

–bool     True, False
 
 
Basic Types C++
 

CC BY 4.0 #Mastery09 #TC1017 Basic Types C++ by Alejandra Jacobo Gómez is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.