Consider the following code: for (i = 0; i < 20; i++) for ( j = 0;

Question:

Consider the following code:
for (i = 0; i < 20; i++)
for ( j = 0; j < 10; j++)
a[i] = a[i]* j
a. Give one example of the spatial locality in the code.
b. Give one example of the temporal locality in the code.
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: