Showing posts with label Pascal. Show all posts
Showing posts with label Pascal. Show all posts

Friday, November 4, 2011

Array on Turbo Pascal


An array is a data structure consisting of many variables with the same data type, where each element has a value of the index variable. Each array element is able to store one type of data .


example :
A : array [1 .. 6] of integer;
Logically defining the array above is a set of boxes, where each box has an index value of an integer 1, 2, 3, ..., 6 each array element is characterized by: