how has C bitten you?

David M. Haynes david at ecrhub.UUCP
Fri Aug 2 22:22:11 AEST 1985


One of my all time favourites is the non-orthagonality between
scanf and printf. Especially the following:

	scanf("%D %F", long, double); or
	scanf("%ld %lf", long, double);
vs.
	printf("%ld %f", long, double);

Why no %F or %D on printf?
And why %lf vs %f? fun!

-- 
--------------------------------------------------------------------------
						David M. Haynes
						Exegetics Inc.
						..!utzoo!ecrhub!david

"I am my own employer, so I guess my opinions are my own and that of
my company."



More information about the Comp.lang.c mailing list