Hello

In the following sample, why the commented print gives a syntax error?
cpu% 8c -FVw t.c
t.c:12 syntax error, last name: maxarg2


#include <u.h>
#include <libc.h>


static double maxarg1,maxarg2;
#define FMAX(a,b)
(maxarg1=(a),maxarg2=(b),(maxarg1)>(maxarg2)?(maxarg1):(maxarg2));

void main(void){
        float a,b,c,d;
        a=1.0; b=2.0; c=3.0; 
        d=FMAX(b,1.0);
        // print("%f", fabs(a)*FMAX(b,1.0)/c);
        print("%f", fabs(a)*d/c);
}


Thanks

Gabi


Reply via email to