Почему результат 62? ⇐ C++

Программы на C++. Форум разработчиков
Anonymous
Почему результат 62?

Сообщение Anonymous »

Единственное, что пришло мне на ум, это MULT((3+2)(5*4))= 100, а не 62? Какое объяснение?
#include "stdafx.h"
#include
#include
#define ADD(x1, y1) x1 + y1
#define MULT(x1,y1) x1 * y1

int _tmain(int argc, _TCHAR* argv[])
{
int a, b, c, d, e, f, g;
a = 2;
b = 3;
c = 4;
d = 5;
e = MULT(ADD(a,b),MULT(c,d));
printf("the value of e is: %d\n", e);
system("PAUSE");
}


Подробнее здесь: https://stackoverflow.com/questions/119 ... of-this-62

Вернуться в «C++»