Quote:
|
"char *name" and "char name[xx]" are basically the same.
|
This isn't true. They are essentially different. I use the term, 'essentially', advisedly. One only has to use them as if they are the same (even in a valid way) and examine the emitted code. The compiler tends to hide this difference in some instances, as a
perceived favor to the user. Sometimes, if one accepts it literally, as many seem to do these days, it isn't a favor. You might want to refer to the section in my tutorial on pointers (see my sig) entitled, "What is NOT a pointer".