Possible Duplicates:
const int = int const ?
Const in C
hi,
I would like to know the exact meaning of “int const* ” in C ,And also a small comparison between “const int*” and “int const*” in an embedded programming system.
__kanu
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It means a pointer to a constant integer. In other words, the pointer is not constant, but the value it points to is.
There is no difference.
A similar construct is
int * const. Here there is a difference. This time the pointer is constant but the value it points to is not.