// This program uses the address of each element in the array. #include #include using namespace std; int main() { const int NUM_COINS = 5; double coins[NUM_COINS] = {0.05, 0.1, 0.25, 0.5, 1.0}; double *doublePtr; // Pointer to a double int count; // Array index // Use the pointer to display the values in the array. cout << setprecision(2); cout << "Here are the values in the coins array:\n"; for (count = 0; count < NUM_COINS; count++) { doublePtr = &coins[count]; cout << *doublePtr << " "; } cout << endl; return 0; }