The conversation between human and AI assistant.
What is the difference between const int *ptr and int *const ptr?
What would be an example of when to use const int *ptr?
One example would be in a function where you want to ensure that a variable passed as an argument is not accidentally modified.