You are on page 1of 2

CHAPTER 3 : BASIC STRUCTURE OF PROGRAMMING .

Phase 1 Computer
writing Program
:

types I create in editor


a
program
.

Phase
Preprocessing
2 :

gives command to compile to


program

Preprossor automatically
-

executes
program

Phase 3 :
compile

compiler translates into & creates


object code
machine
language code
-

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
-

creates a executable file & stores it


- ( file name ) .
exe

Loading
Phase 5 :

Phase 6 :
Execute
Results 1 Outputs will be displayed .

Accept data
Memory
Process data
according to specific rules

Produce results

store results for future use


Common
Programming Errors .

_•
Logic Errors
to to -

error occur due to


Run time
-

Syntax Errors inappropriate output


mistake
errors error occur
during compile Programming
-
-

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

You might also like