-
Arrays & Vectors–Arrays–STRUCTURED PROGRAMMING Course Notes
Arrays & Vectors Intro Data Structures are collections of related items. Arrays are data structures consisting of related data items of the same type. Arrays are “static” entities in that they remain the same size throughout program execution. (They may, of course, be of automatic storage class, and hence be created and destroyed each time the blocks in which they’re defined are entered & exited.) An array is a consecutive group of memory locations that share the same type. To refer to a particular location or element in an array, we specify the name of the array and the position number of the particular element in the array. A program…