|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Problems and Solutions 2
Problem 2.1:
What dimensions do you need to know to determine the value of arr[3][5][7]
using only pointer arithmetic and the dereference operator (*)?
[Solution]
Problem 2.2:
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.
[Solution]
Problem 2.3:
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.
[Solution]
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Contact Us | Privacy Policy | Terms and Conditions | About
©2006 SparkNotes LLC, All Rights Reserved.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||