What is a system?
Advantages of a computer
Fast; Accurate; Can do complex jobs
Create info; Store Info; Manipulate info
Retrieve info; Transfer info
Disadvantages
Has no thinking; indiscriminate; Costly;
requires skill
Problem statement
Algorithm
Program
Machine instructions
Execution
1. Input
2. Output
3. Definiteness Each instruction must be clear and
unambiguous.
4. Finiteness- The algorithm must terminate after a finite
no. steps.
5. Effectiveness- Every instruction must be sufficiently
basic and must be feasible.
Program need not satisfy (4)
void main( )
{
printf(My Name Is Ravi);
}
A. Library functions
B. Different data types
C. Operators
D. Declaration of variables, constants
E. Storage classes (auto, register, static, extern)
F. IF-THEN-ELSE, FOR loop, DO WHILE, SWITCH-CASE
G.Functions to perform specific tasks
H. STRUCTURE and UNION
I. Memory allocation (malloc and calloc)
J. Pointers