Page 8 - FP 201 – Programming Fundamentals
P. 8
1.2.1 Compiling Process
Compiler
Translate the whole program at one time.
Translates the source code, for example C language to
machine language.
# include <iostream>
main( ) 11101 100000
{ 100000
int x, y, z, sum; 11110
double avg; Compiler 10111000
cout <<" Enter 3 11101000
numbers:"; 11111100
cin >> x >>y>>z; 10111000
sum = x + y + z; 10001110 11011000
avg = sum / 3; 11000000
cout <<avg;
return 0; Machine Langeage
}
C Language