[prev] 65 [next]

Arrays

An array is
  • a collection of same-type variables
  • arranged as a linear sequence
  • accessed using an integer subscript
  • for an array of size N, valid subscripts are 0..N-1
Examples:

int  a[20];    // array of 20 integer values/variables
char b[10];    // array of 10 character values/variables