Just a general question here...when dealing with strings, when, or why would it be more efficient to use a pointer, instead of an array...I personally prefer arrays...for example.
char string[40] (limits you to a 41 character string)
char *string (no limit, unless you malloc/calloc)
now if i wanted to rearange, organize, etc...it would be easier to do with an array, as apposed to a pointer.
The only real reason i see of using a pointed is when dealing with binary info...agree/dissagree? And why?
Rob
char string[40] (limits you to a 41 character string)
char *string (no limit, unless you malloc/calloc)
now if i wanted to rearange, organize, etc...it would be easier to do with an array, as apposed to a pointer.
The only real reason i see of using a pointed is when dealing with binary info...agree/dissagree? And why?
Rob