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.