1.

What do you understand about arrays? What are some of the real life applications of an array?

Answer»

A collection of items stored in contiguous memory spaces is referred to as an array. The objective is to GROUP together goods of the same type. This makes calculating the position of each element EASY by simply adding an offset to a base value, such as the memory ADDRESS of the array's first element.

Following are the real-life applications of an array:

  • Arrays can be used to STORE data in a tabular STYLE as a simple application. For example, if we want to save our contacts on our phones, the software will simply create an array with all of our contacts.
  • The arrangement of a game's leaderboard may be done simply by using arrays to record the score and arranging them in descending order to clearly see each player's rank in the game.
  • A straightforward question paper consists of an array of numbered questions, each of which is assigned a set of marks.
  • In image processing, 2D arrays, often called matrices, are used.
  • It's also used in speech recognition, where each spoken signal is represented by an array.


Discussion

No Comment Found