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;
none since it does not compile without error
1.0
2.0
an address in memory, something like 0x7ffcf6b8ae40