What is wrong with this program?

Chris Torek chris at umcp-cs.UUCP
Fri Aug 9 22:14:06 AEST 1985


One question: to what does "data" point?  You haven't ever *set* it
to anything....

(Probably, "data" happens to point to a region on the stack, or in
the data segment, that is clobbered by the call to printf(), but
not by the macro invoked by putchar().)

Lint would have caught that error, by the way.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 4251)
UUCP:	seismo!umcp-cs!chris
CSNet:	chris at umcp-cs		ARPA:	chris at maryland



More information about the Comp.lang.c mailing list