Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!texbell!sugar!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.lang.c Subject: Re: Language principles Message-ID: <=FV19A2xds13@ficc.uu.net> Date: 19 Feb 90 14:56:38 GMT References: <1990Feb9.181942.24649@utzoo.uucp> <4721@rtech.rtech.com> <1990Feb13.153513.2196@hcr.uucp> <645@dino.cs.iastate.edu> Reply-To: peter@ficc.uu.net (Peter da Silva) Organization: Xenix Support, FICC Lines: 11 In article <645@dino.cs.iastate.edu> hascall@cs.iastate.edu (John Hascall) writes: > (people who do: #define 2 TWO, #define 3 THREE, ... should be beaten) ;-) > #define N_TERMS 2 ==> #define N_TERMS 3 > average = (a + b) / N_TERMS; ==> average = (a + b + c) / N_TERMS; #define AVERAGE(a,b) (((a)+(b))/2) Sometimes a number is the best thing to use. It's a judgement call. -- _--_|\ Peter da Silva. +1 713 274 5180. . / \ \_.--._/ Xenix Support -- it's not just a job, it's an adventure! v "Have you hugged your wolf today?" `-_-'