Originally Posted by
IceDane
Hmm, I've never thought of this stuff the way you guys(cas especially) are putting it.
So, if I'm getting this right:
If you take the address of a char * variable initialized as a string literal, you'd get the address of the pointer variable, but if you'd take the address of an array, you'd just get the address of the first element, which in fact means that there is no real variable 'storing' the address, so to speak?
And if my thoughts are on the right track, does someone care to explain how the sizeof macro works on arrays, when it doesn't on pointers?
I do understand the difference between the two more thoroughly now, but I still can't think of a way how the macro can work?