Unit 2 - Lesson 2: Data Types

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

float

- uses 4 bytes - goes up to 7 decimal places - represents numbers from -3.4 E308 to 3.4 E308* - called "single precision values" *E = exponent

double

- uses 8 bytes - goes up to 15 decimal places - represents numbers from -1.7 E308 to 1.7 E308* - called "double precision values" *E = exponent

integral

It is a data type that includes numbers without a decimal component. It includes: - char - short - int - long - bool - unsigned char - unsigned short - unsigned int - unsigned long

floating-point

It is a data type that represents numbers with decimals. It includes: - float - double - long double

simple data

It is the type of data C++ uses. There are 3 categories of simple data: 1. Integral 2. Floating-point 3. Enumeration

char

It stands for "character"; it's used to store single letters, digits, and special symbols. It can also represent every key on your keyboard. Value range: -127 to 127 or 0 to 255

int

It stands for "integer"; it represents only integers and can be negative or positive. Value range: -2147483648 to 2147483647

bool

Value range: True or False


Ensembles d'études connexes

Nursing Exam 4-Chapter 24 Questions

View Set

Fetal alcohol spectrum disorders (FASD)

View Set

ANT3514C Module 4 Primates: Extant & on

View Set