Professional Documents
Culture Documents
CHAPTER 3 Algorithm
CHAPTER 3 Algorithm
Phase 1 Computer
writing Program
:
Phase
Preprocessing
2 :
Preprossor automatically
-
executes
program
Phase 3 :
compile
program .
( process )
code will
object be created if machine code is sucessful
-
- if not ,
error
messages will be displayed
for
Name process correcting debugging
=
errors
-
Phase 4:
Linking
-
Loading
Phase 5 :
Phase 6 :
Execute
Results 1 Outputs will be displayed .
Accept data
Memory
Process data
according to specific rules
Produce results
_•
Logic Errors
to to -
error
during wrong user input misplaced not detected
during
-
'
use
-
's
user mistake Declaration syntax error compilation
- '
either
display alert
msg Undefined symbol
-
'
or
hang
.
Statement missing in
function main C)
C Elements
(
Program block components )
Language
.
1. Preprocessor directive
2.
Program body
3. Identifiers
4. C statements
5. Comment