C Data Types Flashcards
C Data type: _Bool
The _Bool data type is used to hold the values 0 and 1 which correspond to the values true and false with 0 being false and 1 being true
C Data type: short
The short data type is an integer data type that uses less storage
C Data type: long
The long data type is an integer type that uses more storage
C Data type: long long
long long is an integer type that more storage than long but, at a minimum must be 64-bits
What are constants
Constants are pieces of data that do not lose there value during program execution
What are integers
Positive or negative whole numbers, without a decimal point
C Data type: char
The char data type in an integer type that holds small number values, letters of the alphabet and symbols
C Data type: float
The float data type is a data type that holds a single-precision floating-point number
What are signed numbers
Numbers that include positive or negative values
Give all five C integer types that you can use to declare integer variables
char, short, int, long and long long
What are unsigned numbers
Numbers that include positive values only
What are floating-point numbers
Numbers with a decimal point
Give all five unsigned C integer types that you can use to declare unsigned integer variables
unsigned char, unsigned short, unsigned int, unsigned long, unsigned long long
C Data type: int
The int data type is an integer type that will hold an integer value
C Data type: double
The double data type is a type that will hold a double precision floating-point number