Data Types/Declarations Flashcards

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)

A

sizeof(type)

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”;

23
Q
A
24
Q

reversed

char

A

character (1 byte)

25
Q

reversed

int

A

integer

26
Q

reversed

float, double

A

real number (single, double precision)

27
Q

reversed

short

A

short (16 bit integer)

28
Q

reversed

long

A

long (32 bit integer)

29
Q

reversed

long long

A

double long (64 bit integer)

30
Q

reversed

signed

A

positive or negative

31
Q

reversed

unsigned

A

non-negative modulo 2m

32
Q

reversed

int*, float*,…

A

pointer to int, float,. . .

33
Q

reversed

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

A

enumeration constant

34
Q

reversed

type const name;

A

constant (read-only) value

35
Q

reversed

extern

A

declare external variable

36
Q

reversed

static

A

internal to source file

37
Q

reversed

static

A

local persistent between calls

38
Q

reversed

void

A

no value

39
Q

reversed

struct tag {…};

A

structure

40
Q

reversed

typedef type name;

A

create new name for data type

41
Q

reversed

sizeof object

A

size of an object (type is size_t)

42
Q

reversed

sizeof(type)

A

size of a data type (type is size_t)

43
Q

reversed

type name=value;

A

initialize variable

44
Q

reversed

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

A

initialize array

45
Q

reversed

char name[]=”string”;

A

initialize char string

46
Q
A