determine the importance of arrayarrays are


Determine the importance of array

Arrays are significant since they allow many values to be stored in a single data structure whereas providing very fast access to each value. This is made possible by the fact that (a) all values in an array are same type, and henokce require the same amount of memory to store, and that (b) elements are stored in contiguous memory locations. Accessing element a[i] requires finding location where the element is stored. This is done by computing b+ (i × m,) where m is size of an array element, and b is the base location of array a. This computation is obviously very fast. Moreover, access to all the elements of the array can be done by starting a counter at b and incrementing it by m, hence yielding the location of every element in turn, which is also very fast.

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: determine the importance of arrayarrays are
Reference No:- TGS0356371

Expected delivery within 24 Hours