focus on programming... what is the problem of this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answer
+ 3
double x = 19.34; double* xPtr = &x; cout << *xPtr << endl; you have forgotten *
12th Mar 2017, 4:55 PM
kibbekPL
kibbekPL - avatar