On Wed, 2002-10-23 at 16:36, Aaron Ardiri wrote:
> > str[index] = '\0';
> >
> > If you're talking about integers, why not always:
> >
> > myInts[index] = 0;
> 
>   well, mainly cause an integer array doesn't have a "null terminator"
>   C strings require a '\0' character on the end to mark the end of the
>   string :) you dont deal with integer arrays in the same way :)

Of course not, but it _is_ quite clear what's happening with these two
assignments, which, after all, was my point.

> > Every C programmer will have seen, dealt with, and learned what these
> > lines mean.  Which means no ambiguities and hopefully fewer bugs.
> 
>   welcome to C :) great language isn't it? :P

Would I be amiss assuming that you've entered the Obfuscated C contest
before?  *grin*

-Ken


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to