Unnecessary parenthesis

Arthur David Olson ado at elsie.UUCP
Sun Jul 10 03:51:30 AEST 1988


I leave out the parentheses in a
	return whatever;
statement; this ensures that if I mistakenly write
	retunr whatever;
I'll get a warning at compile time--along with a line number--rather than
an "Undefined: _retunr" error at link time (with no indication of where the
error is) as would be true if I wrote
	retunr(whatever);
(which the compiler would take to be a function call.)

Of course this advice applies only to those of us who make mistakes.
-- 
	ado at ncifcrf.gov			ADO is a trademark of Ampex.



More information about the Comp.lang.c mailing list