Over 5 days this question remained in my mind "What do mean by arrays"?
Over 5 days this question remained in my mind "What do mean by arrays"?
A simple way to think about Array's is to look at an old record Juke box.
You have a series of records or CD's lined up along the selection cabinet.
When you enter the code for the CD you want, the mechanism goes to that location and loads up the CD.
An array in computer terms is a list of numbers, records, directories, etc.
Each item in the array is accessed by an index number.
Since each item is in sequence, the index is an integer number so that you can select a value from 0 to n. Note some languages use 1 to n.
You can check the entire list by setting up a FOR loop that retrieves each array item sequentially to compare values or data to the data or item of interest, such as the correct CD.
So an Array is just a list that the programmer can establish to catalog just about anything.
DAB
A simple way to think about Array's is to look at an old record Juke box.
You have a series of records or CD's lined up along the selection cabinet.
When you enter the code for the CD you want, the mechanism goes to that location and loads up the CD.
An array in computer terms is a list of numbers, records, directories, etc.
Each item in the array is accessed by an index number.
Since each item is in sequence, the index is an integer number so that you can select a value from 0 to n. Note some languages use 1 to n.
You can check the entire list by setting up a FOR loop that retrieves each array item sequentially to compare values or data to the data or item of interest, such as the correct CD.
So an Array is just a list that the programmer can establish to catalog just about anything.
DAB