Basics and Introduction to C II-5
used to control various peripheral devices such as a keyboard, a monitor, a printer, a mouse and ports
including serial and parallel ports. In fact, this is an operating system. It is possible to access the users’
written programs, i.e., by loading a file, saving it and doing modifications to it in the later stage. As soon
as a personal computer is switched on, the software is booted from ROM. Thus, various functions are
assigned to all supporting peripherals of a central processing unit (CPU) and easy interactions are pro-
vided to the user by BIOS while booting the system.
Secondary memory: For storing a huge volume of data, secondary storage devices can be used. They are
optical disc, magnetic disc, tapes, etc.
Central processor unit: The heart of a computer system is a CPU. It comprises arithmetic and logical
unit, registers and control unit. The arithmetic and logical unit performs operations based on instruc-
tions. The control unit generates the timing and control signals for carrying out operations within the
processor. Registers are used for storing the results temporarily.
3. What is ANSI C standard?
Ans: For many years, there was no standard version of C language and the definition provided in the
reference manual was followed. Due to this reason, the portability feature of C language was not pro-
vided from one computer to another. To overcome this discrepancy, a committee was set up in the sum-
mer of 1983 to create a standard C version, which is popularly known as American National Standards
Institute (ANSI) standard. This committee had defined finally a standard C language. The standardiza-
tion process took about six years for defining the C language. The ANSI C standard was adopted in 1989
and its first copy of C language was introduced in the market in 1990. Thus, ANSI C is internationally
recognized as a standard C language. The purpose of this standard is to enhance the portability and
efficient execution of C language programs on different computers.
4. Explain the machine and assembly language concepts.
Ans: Machine language is a computer’s natural language, which can be directly understood by the
system. This language is machine dependent, i.e., it is not portable. A program written in 1s and 0s is
called a machine language. A binary code is used in a machine language for a specific operation. A set
of instructions in binary pattern is associated with each computer. It is difficult to communicate with
a computer in terms of 1s and 0s. Hence, writing a program with a machine language is very difficult.
Instead of using a string of binary bits in a machine language, programmers started using English-like
words as commands that can be easily interpreted by programmers. The program is in alphanumeric
symbols instead of 1s and 0s. The designer chooses easy symbols that are to be remembered by the
programmer, so that the programmer can easily develop the program in assembly language. The alpha-
numeric symbols are called mnemonics in the assembly language. The ADD, SUB, MUL, DIV, RLC and
RAL are some symbols called mnemonics.
5. Why C language is called middle-level language?
Ans: The C language combines the features of a high-level language and functionality-like assem-
bly languages. This language is designed for providing better programming efficiency (faster program
development) as compared to machine-oriented and machine efficiency languages (faster program
execution) and as compared to problem-oriented language. In C, one can develop a program fast and
execute fast. It is neither a low-level language nor a high-level language. However, it is a combination
of features of low- and high-level languages.
M01_ITL-ESL4791_02_SE_C01.indd 5 12/22/2012 4:59:19 PM