Class 3 Flashcards

1
Q

Preproccesor

A

.c + .h = .i
#includes statements are expanded, #defines are replaced, and comments are removed

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

Compiler

A

.i —> .s (assembler source code)
Syntax parser

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

Assembler (Converts assembly code to object code)

A

.s —> .o (assembler code parser)
Which is an object file; fragments of machine code with unresolved symbols and some addresses not known

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

Linker (converts object code to executable code)

A

.o + library links a.out (default name); resolves symbols, generates an executable

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

Char

A

8 bits (1 bytes). Remember that each byte has its own address

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

Short

A

2 bytes

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

Int

A

4 bytes

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

Long

A

8 bytes

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

Float

A

4 bytes

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

Double

A

8 bytes

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

Long double

A

16 bytes

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

There are conceptually ______ of derived types constructed from the following types

A

Infinite class

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

In what ways can derived types by constructed

A

Array of objects (variables or derived types), pointers to objects of given type, structures, union

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

Constant variables are _______ only

A

Read. They cannot be modified during the execution of a program

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

Variable declarations formatt

A

Type identifier (, identifier);
Ex: int i, j, k;

17
Q

Stdbool.h

A

Defines three macros bool,true,false