#include "stdafx.h" #include using namespace std; #define NUMBER_OF_ELEMENTS 100 #define __DEBUG__ #define KMULT(x,y) ((x)*(y)) #define KADD(x,y) x+y #define MAX(x,y) int main() { int a, b=10, c=20; double x[NUMBER_OF_ELEMENTS]; a = KMULT(3+1, 4); // 16 a = KMULT(3 + 1, 4); // 7 3+1*4 if defined as #define KMUL(x,y) x*y a = KADD(1, 2); a = (b < c) ? 1 : 0; a = (b < c) ? b : c; // a is min{b,c} if (b < c) a = 1; else a = 0; return 0; }