Hi,
So it's pretty much clear that doing *a = 5 is not very straightforward.
I am just unclear about what are the possible uses of declaring 'a' in this
way?
To summarize may I conclude (if everyone agrees):
Declaring a pointer as const is a way of declaring the programmer's intent of NOT changing the item pointed through this pointer. The pointed thing can change if is not inherently const itself.
Regards
Infinity08
>> The pointed thing can change if is not inherently const itself.
May I ask why you gave a B grade ? That usually means that something is missing in the answer and/or that something is still unclear. If that's the case, then you don't have to close the question, and we'll be happy to help you further.
If the question was completely answered, then an A grade is appropriate.
You should also take care in selecting those posts that actually answered your question, and not any others. For example, my objction post should not have been part of the accepted posts.
Please clarify.
dtivmk
ASKER
I am really sorry for all this mixing up.
Sounds silly, but one of my friends, who
obviously had access to my machine,
accepted the solution and did all the points
assignment.
Is there a way to increase the points,
that have been assigned to the answers?
Infinity08
That's ok, dtivmk. The question is already at its maximum of 500 points. We can leave it like this now.
If you need any further help with this question and/or anything is still unclear, then please do not hesitate to ask.
So it's pretty much clear that doing *a = 5 is not very straightforward.
I am just unclear about what are the possible uses of declaring 'a' in this
way?