/** * A tiny little example of a function created using #define * @author gtowell * Created: march 2021 * **/ #include // the defined function #define SQR(x) (x*x) int main(int argc, char const *argv[]) { double dd = 4.2; int ii = 12; // apply the func to an integer printf("%f\n", SQR(dd)); // apply to a double printf("%d\n", SQR(ii)); return 0; }