Lec 2 Basic Of-Language
Lec 2 Basic Of-Language
Rafid Mostafiz
IIT, NSTU
What is Computer?
2
Computer
Device capable of performing computations and making logical decisions
Computers process data under the control of sets of instructions called
computer programs
Hardware
Various devices comprising a computer
Keyboard, screen, mouse, disks, memory, CD-ROM, and processing units
Software
Programs that run on a computer
Computer Organization
3
CPU
Input Device Output Device
ALU CU
Preprocess/
Compile/
Link
Load/
Edit Run
.
First C Program
13
Comments
void main ()
All C programs have a main function;
{ they also start at main
Edit
Program
Source
Code
Compile
Object
Code
Any Question?