Arrays: Memory


Problems and Solutions 2

Problem : What dimensions do you need to know to determine the value of arr[3][5][7] using only pointer arithmetic and the dereference operator (*)?


Problem : Assuming that the second dimension were SECOND and the third dimension were THIRD, calculate the value of arr[3][5][7] from the pointer arr using pointer arithmetic and the dereference operator.


Problem : As an exercise, write some code that will print out all of the integers in the integer array without ever using the square brackets to index into it. There are n integers in the array arr.


Take a Study Break

Green YOUR SCHOOL!

Click here to get involved with dosomething.org!

John Krasinski's BIG MIRACLE

Click to watch the trailer and read exclusive star interviews!

Do you like Anna?

Read Dear Albert... from ANNA's perspective!

BATTLESHIP, the movie

Here's why we're super jazzed about it.


The Book

Cover image

Read What You Love, Anywhere You Like

Get Our FREE NOOK Reading Apps