+ 2

focus on programming... what is the problem of this code?

double x = 19.34; double xPtr = &x; cout << xPtr << endl;

12th Mar 2017, 4:48 PM
mahmood motallebi
mahmood motallebi - avatar
1 Antwort
+ 3
double x = 19.34; double* xPtr = &x; cout << *xPtr << endl; you have forgotten *
12th Mar 2017, 4:55 PM
kibbekPL
kibbekPL - avatar