Arrays and functions - CMPT 128 Introduction to Computing...

Info icon This preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
1 0 © Janice Regan, CMPT 128 January 2007 CMPT 128: Introduction to Computing Science for Engineering Students Introduction to 2-D Arrays © Janice Regan, CMPT 128 January 2007 1 Matrices D A matrix or two-dimensional array is a set of number arranged in a grid with rows and columns. A matrix is defined using a type declaration statement. 6 type array_name[num_rows][num_columns] 6 type array_name[length_column][length_row] 6 int matrix[3][4]; 6 double mice[7][9]; 6 char courselist[4][32];
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon