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