#include #include using namespace std; int main() { double list[4]={10.1234, 20.1234, 30.1234, 40.1234}, *p; p = list; //NOTE: list is a constant pointer to list[0] for (int k=0; k<4; k++) { //NOTE: The setprecision() ostream manipulator IS persistent! cout << setprecision(2) << list[k] << endl; cout << *(p+k) << endl; cout << p[k] << "\n\n"; } //NOTE: See what happens if you leave the "fixed" manipulator out return 0; }