CyberSlug Rules!

Beginner Programming CMPS060

Prof. Paulo Franca

Home

Syllabus

Login

Objects

Download

Staff only

Arrays of arrays

It is possible to have an array where each element is an array.

float grades [10] [50];

grades is an array of 10 arrays, each with 50 grades; this may represent grades for 10 different classes.

float prices [5] [100];

an array of 5 arrays with 100 prices each. This may represent the price list for 5 different stores. Each store has a price list with 100 items.