comment style
Tom Jaskiewicz
tj at Alliant.COM
Sat Jan 12 12:44:49 AEST 1991
In article <10852 at darkstar.ucsc.edu> funkstr at ucscb.UCSC.EDU (Larry Hastings) writes:
>This makes this example somewhat less compelling -- if you had a program
>which was legal both ways and produced different output, I'd be more
>inclined to agree. (I can't come up with such an example -- does anyone have
>one?)
Ok... How about this:
int foo(int a, int b)
{
return a
//* what kind of comment is this? */ 2
//* what kind of comment is this? */
-b;
}
Not that I normally write code that looks like that.
--
##########################################################################
# The doctrine of nonresistance against arbitrary power, and oppression is
# absurd, slavish, and destructive of the good and happiness of mankind.
# -- Article 10, Part First, Constitution of New Hampshire
More information about the Comp.std.c
mailing list