data types Flashcards
1
Q
int
A
stores integers
%d
2
Q
float
A
stores decimal numbers to about 6 digits of precision
%f
3
Q
double
A
stores decimal numbers to about 15 digits of precision
%lf
4
Q
long (int)
A
stores big integers (the int is optional)
ex: 123456
%l
5
Q
long double
A
stores big decimal numbers to about 19 digits of precision
%Lf
6
Q
char
A
stores a single character, enclosed within single quotes
%c
7
Q
string (and syntax)
A
an array of chars that allow for the formation of words
ex: char name[] = “boobaa”;
%s
8
Q
void
A
stores no value
no format specifier
9
Q
format specifiers
A
used to hold user input to a variable or display the value of a variable in a string
each data type has its own