Hacker News new | ask | show | jobs
by watergatorman 2597 days ago
"... const int* x_ptr_3 = &x; // (3) ... Finally, we see the preferred approach, which is taking a const pointer (3)"

Not a const pointer, but a pointer to const int.

1 comments

Thank you for the correction!