Unnecessary Goto's - (nf)

eric at whuxle.UUCP eric at whuxle.UUCP
Wed Dec 14 08:22:54 AEST 1983


#R:allegra:-202800:whuxle:23200002:000:223
whuxle!npl    Dec  3 15:34:00 1983

While mark's formulation is by far the clearest so far, why not
try this?

	for( goodans = 0; !goodans ; printf("Try again\n") {
		printf("what's 2 plus 2? ");
		.......
		/* code which check results and sets goodans */
	}



More information about the Comp.lang.c mailing list