Monday, July 27, 2009

What is an Array?

An array is a group of related data items that share a common name. Each object in an array is called an array element.

For example, you could have an array of integers or an array of float or an array of characters or an array of anything that has a defined data type.

The important characteristics of an array are:
  • Each element has the same data type but may may have different values.
  • The entire array is stored contiguously in memory.
  • One-dimensional array, Two-dimensional array and multi-dimensional array are the possible array types.

No comments:

Post a Comment