Data Types/Declarations Flashcards
1
Q
character (1 byte)
A
char
2
Q
integer
A
int
3
Q
real number (single, double precision)
A
float, double
4
Q
short (16 bit integer)
A
short
5
Q
long (32 bit integer)
A
long
6
Q
double long (64 bit integer)
A
long long
7
Q
positive or negative
A
signed
8
Q
non-negative modulo 2m
A
unsigned
9
Q
pointer to int, float,. . .
A
int*, float*,…
10
Q
enumeration constant
A
enum tag {name1=value1,. . . };
11
Q
constant (read-only) value
A
type const name;
12
Q
declare external variable
A
extern
13
Q
internal to source file
A
static
14
Q
local persistent between calls
A
static
15
Q
no value
A
void
16
Q
structure
A
struct tag {…};
17
Q
create new name for data type
A
typedef type name;
18
Q
size of an object (type is size_t)
A
sizeof object