Chapter 5 Terms
Arrays
Definition: a data structure in which all elements are the
same type and are contiguous in memory.
Single dimension
syntax (int Array[5];)
Linear memory storage
Range of values
0...Length - 1
AVOID out of bounds
Initialization options
Empty
Filling
Multidimensional
syntax (int Matrix[5][4];)
Initialization
Matrix multiplication
Strings
Definition: Array of characters terminated by the null character
Remember range of values is 0...StringLength (this includes '\0')
I/O
justification
left/right
Library functions: "string.h"
strlen
strcpy
strcmp
returns negative, 0, positive
Chris Alvin
Last modified: Tue Mar 20 12:34:46 CST 2001