Wednesday, February 25, 2009

Arrays

Introduction of Array
An array is the collection of similar data types.The individual elements of an array is identified by using an index.
Each index number in an array is allocated individual memory space. Hence users declare arrays of larger size than required.
Array helps in creating smaller and simpler code in many situation.You can setup loops that deal efficiently with any number of cases by using the index number.
A loop is used to execute a group of statements repeatedly, based on a condition.

No comments: