initializing null pointers
drw at cullvax.UUCP
drw at cullvax.UUCP
Tue Feb 10 02:42:42 AEST 1987
jans at stalker.gwd.tek.com (Jan Steinman) writes:
> The most portable thing to do is NEVER dereference a pointer that has not been
> initialized. Some micro compilers I've used don't even initialize automatics!
I would suspect that any optiomizing compiler would try to avoid
initializing automatics--they're not required to, and it takes time.
On a larger scale, hasn't anyone who reads this group learned that the
language is defined by its definition (i.e., K&R and its successors),
not by what their own favorite compiler happens to do? Until you
learn the difference between specification and implementation, you
haven't learned how to program.
Dale
--
Dale Worley Cullinet Software
UUCP: ...!seismo!harvard!mit-eddie!cullvax!drw
ARPA: cullvax!drw at eddie.mit.edu
More information about the Comp.lang.c
mailing list