Temporary variables

Άγγελος Οικονομόπουλος aoiko at cc.ece.ntua.gr
Sat Jun 1 02:40:01 EEST 2002


On Friday 31 May 2002 13:47, Αναστασάτος Βασίλειος wrote:
> Άγγελος Οικονομόπουλος wrote:

> > Avoid temporary variables.
> >   - The Elements of Programming Style (Kernighan & Plaugher)
>
> 
> Γιατί;  Πώς;

i) 3exases to [FLAME BAIT] sto subject

ii) apo kati pou eftia3a prosfata:

a=(struct apple *)((unsigned char *)&(orange->lemon)+KILOS);

elpizw na katalabes pia einai h gnwmh[0] mou gia tis tmp vars :-)

[0] einai polu xrhsimes otan kati einai adunato na ginei diaforetika,
px tmp=a; a=b; b=tmp;

-- 
Test input for validity and plausibility.
            - The Elements of Programming Style (Kernighan & Plaugher)




More information about the Linux-greek-users mailing list