Historically, a C program has been composed of the following pieces:
Text segment, the machine instructions that the CPU executes. Usually, the text segment
is sharable so that only a single copy needs to be in memory for frequently executed
Memory Organisation & Operation
Main Memory (RAM) Organisation
Computers employ many different types of memory (semi-conductor, magnetic disks and tapes,
DVDs etc.) to hold data and programs. Each type has its own characteristics and uses. We will look
Types of Sorting
Compares the adjacent elements
For n number of elements there are n-1
Total number of comparisons is n2 2n +1.
Time complexity of bubb
Note : All the programs are tested under Turbo C/C+ compilers.
It is assumed that,
Programs run under DOS environment,
The underlying machine is an x86 system,
Program is compiled using Turbo C/C+ compiler.
The program output may depend on the informat