Jump to

v08-l1-codeOutput

What is the output of the following code ?

double x = 1.0;
double* ptr = &x;
const double& ref = *ptr;
x = 2.0;
cout << ref << endl;

???