Jump to

v08-l1-codeOutput2

What is the output of the following code ?

double x = 1.0;
double* ptr = &x;
double*& ref = ptr;

*ref = 2.0;
cout << ref << endl;

???