|
Re: char[] vs char*
when NOT used as a parameter to a function always use the array notation if you think you will change any of the characters in the array.
A pointer probably points to somewhere in read-only memory so it can not be changed. The pointer notation should really be made const so that you can't change the string to which it points.
__________________
I Like Ike. Vote for Dwight Eisenhower this November.
--This message brought to you by the the Procrastinators Club Of America.
|