What is the output of the following code ?
double x = 1.0; double* ptr = &x; double*& ref = ptr; *ref = 2.0; cout << ref << endl;
an address in memory, something like 0x7ffcf6b8ae40
2.0
none since it does not compile without error
1.0