© Andrew T. Shvets 2020Andrew T. ShvetsBeginning Ada Programminghttps://doi.org/10.1007/978-1-4842-5428-8_5
5. Arrays, Records, and Access Types
Andrew T. Shvets1
Providence, RI, USA
In this chapter, more sophisticated types will be covered. Arrays, records, and access types are discussed. All are very basic data containers, and while they are different from one another, they play important roles in Ada.
Let’s say you have 500 different numbers of the same type (an Integer). You would like to either search through them in order to find the largest/smallest or find the average and so on. If you had to allocate 500 different variables for each number, you would waste time creating unwieldy code that is very ...