Description
Why to use Arrat?
Presentation Transcript
Advantage : Advantage We all know that computer memory has unique address for each of its
memory cells and these memory cell/locations are accessed at random by using variables. Thus in order to store a large number
(say 100,1000 or more) of data , we require a large number(100,1000
or more) of variables . Using so many variables simultaneously and
keeping track of each to know the content will be a very difficult task.
Therefore, storing data in consecutive memory locations under a single
name (variable) i.e. using array will make the task much easier.
Elements of the array can easily be accessed by their positions.
Manipulations on the data such as searching, sorting etc will be much
easier.
Example : Arrays can be used to store details of the employs, names of the cities, marks of the students etc.
Your Facebook Friends on WizIQ