Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"... 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.



Thank you for the correction!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: