Class 2 Flashcards

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

Preprocesor tasks

A

Prepares a .c file for the compiler
Input is from source code.c and output goes to source code.I
String all comments from the source code
Using #include preprocess or directives in the source code file, copy the entire contents of the file in to sourcecode.I
Replace any MACROS

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

Declaration

A

Type information only, no values

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

Variable declaration

A

Tells the compiler the type of the variable

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

Function declaration

A

It tells the compiler the return type, the number and types of its parameters, this is called PROTOTYPE

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

Definition

A

Type information and value

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

Variable definition

A

Tells the compiler the type of the variable and the INTITIAL VALUE

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

Function definition

A

Tells the compiler the return type, parameter types, and the CODE that should be executed

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

A given variable or function can only be defined ______ in a C program

A

ONCE

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