Question: Goal: Learn how to access and manipulate elements in an array using pointer arithmetic. Assignment: Given the pointer pDistances that points to a double array

Goal: Learn how to access and manipulate elements in an array using pointer arithmetic.
Assignment: Given the pointer pDistances that points to a double array of distances in miles. Print out the value of each element. The length of the array is stored in the constant integer SIZE.
Sample output:
Element 0 of distances is 12.44
Element 1 of distances is 234.2
Goal: Learn how to access and manipulate elements

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!