+ 2
focus on programming... what is the problem of this code?
double x = 19.34; double xPtr = &x; cout << xPtr << endl;
1 Odpowiedź
+ 3
double x = 19.34;
double* xPtr = &x;
cout << *xPtr << endl;
you have forgotten *
double x = 19.34; double xPtr = &x; cout << xPtr << endl;