C
Chad
This is taken from page 90 in "The C Programming Language" by Kernighan
and Richtie.
They have the debugging print macro:
#define dprint(expr) printf(#expr " = %g \n", expr)
Which is invoked as in:
dprint(x/y);
The question is, does dprint(x/y) get expanded every time the program
is run (ie I compile it once, but run the program like 200 times), or
only once when the program gets compiled?
and Richtie.
They have the debugging print macro:
#define dprint(expr) printf(#expr " = %g \n", expr)
Which is invoked as in:
dprint(x/y);
The question is, does dprint(x/y) get expanded every time the program
is run (ie I compile it once, but run the program like 200 times), or
only once when the program gets compiled?