Lecture 1
Lecture 1
Syllabus
TEXTBOOKS
E. Balagurusamy, Programming in ANSI C, 8th Edition,
McGraw Hill Publication, 2019.
REFERENCE BOOKS
B. W. Kernighan, D. M. Ritchie, The C Programing Language,
2nd Edition, Prentice Hall of India, 2014.
• Output: The output unit is the counterpart of the input unit. Its
function is to send processed results to the outside world. The
most familiar device is a printer. Some units, such as graphical
displays, provide both an input and output function.
Memory
• The function of the memory unit is to store programs and data. There are two
classes of storage, called as Primary and Secondary.
• Memory in which any location can be accessed in short and fixed amount of
time after specifying address is called Random Access Memory (RAM).
Memory Con’d
15
Primary storage: RAM & ROM
• RAM stands for Random Access Memory
Read and write memory
Information typed by the user are stored in this memory
Any memory location can be accessed directly without
scanning it sequentially (random access memory)
During power failure the information stored in it will be
erased volatile memory
• ROM stands for Read Only Memory
Permanent memory and non - volatile
Contents in locations in ROM can not be changed
Stores mainly stored program and basic input output
system programs
16
Secondary memory
Low speed
18
Cache memory
High speed memory placed between CPU and main
memory
Stores data and instructions currently to be executed
More costlier but less capacity than main memory
Users can not access this memory
19
Buses – Data is transmitted from one part of a computer to
another, connecting all major internal components to the
CPU and memory.
Types:
• Data Bus: It carries data among the memory
unit, the I/O devices, and the processor.
2. High level language is less memory efficient. Low level language is high memory efficient.
6. It is portable. It is non-portable.