What does const do in this code?

This is a discussion on What does const do in this code? within the C++ Programming forums, part of the General Programming Boards category; What is the difference between const and const int in this code? Can't you use just int?
double priceCanadian(int priceUS)
...

Agree with marCplusplus. Just wanna add that const has a different use when u using pointers. i.e const int *number means that the actual value cannot be changed but it can point somewhere else. int const *number means that the value can be changed but it cannot point somewhere else.