Data Types/Declarations Flashcards

(46 cards)

1
Q

character (1 byte)

A

char

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

integer

A

int

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

real number (single, double precision)

A

float, double

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

short (16 bit integer)

A

short

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

long (32 bit integer)

A

long

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

double long (64 bit integer)

A

long long

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

positive or negative

A

signed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

non-negative modulo 2m

A

unsigned

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

pointer to int, float,. . .

A

int*, float*,…

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

enumeration constant

A

enum tag {name1=value1,. . . };

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

constant (read-only) value

A

type const name;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

declare external variable

A

extern

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

internal to source file

A

static

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

local persistent between calls

A

static

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

no value

A

void

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

structure

A

struct tag {…};

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

create new name for data type

A

typedef type name;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

size of an object (type is size_t)

A

sizeof object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

size of a data type (type is size_t)

20
Q

initialize variable

A

type name=value;

21
Q

initialize array

A

type name []={value 1 ,. . . };

22
Q

initialize char string

A

char name[]=”string”;

24
Q

reversed

char

A

character (1 byte)

25
# reversed int
integer
26
# reversed float, double
real number (single, double precision)
27
# reversed short
short (16 bit integer)
28
# reversed long
long (32 bit integer)
29
# reversed long long
double long (64 bit integer)
30
# reversed signed
positive or negative
31
# reversed unsigned
non-negative modulo 2m
32
# reversed int\*, float\*,...
pointer to int, float,. . .
33
# reversed enum tag {name1=value1,. . . };
enumeration constant
34
# reversed type const name;
constant (read-only) value
35
# reversed extern
declare external variable
36
# reversed static
internal to source file
37
# reversed static
local persistent between calls
38
# reversed void
no value
39
# reversed struct tag {...};
structure
40
# reversed typedef type name;
create new name for data type
41
# reversed sizeof object
size of an object (type is size\_t)
42
# reversed sizeof(type)
size of a data type (type is size\_t)
43
# reversed type name=value;
initialize variable
44
# reversed type name []={value 1 ,. . . };
initialize array
45
# reversed char name[]="string";
initialize char string
46