[comp.lang.c] FOLLOW-UP FOR WEIRD BUG ON EXIT

brian@orange.ucsb.edu (Brian Mak) (08/01/90)

thank you for those who replied to me personally. I found the bug.
My original program is something like that:

main()
{
.
.
.
.
printf("%d%d%lf\n", x, y, z);
.
.
}

Later I took out the variable "z" from the program; i.e. the print statement
becomes:
	printf("%d%d%lf\n", x, y);

then I got the weird bug which results in segmentation violation at the end 
of the program, but nothing if an exit() is put right before the closing 
bracket(}).


Brian MAK