jimLee:
I've used c strings for years. I hardly ever use const char* at all. So I don't know all of its ins and outs. I ran across this in some code today.
const char* aStr;
const char* anotherStr;
anotherStr = aStr;
Now, I thought const meant that, whatever it was after, could not change. How can you assign something to a const?
-jim lee
The const binds to the char, not char*. If you want a constant pointer you say