Lecture 22 Objectives


At the end of today's class you should

KNOW:

BE ABLE TO:

Sample Exam Question:

Rewrite the loop in the following code so that it access the array list using pointer notation instead of using square-bracket notation:

int list[5][10], i;
int *pList;

pList = list;

// set the 0th element of each row to i
for (i=0;  i<5; i++)
  list[i][0] = i;