Вопрос по c – C Программирование умножения макросов [дубликаты]

2

Possible Duplicate:
C Macros and use of arguments in parentheses

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

#define MULT(x, y) x * y

Error: User Rate Limit Exceededint z = MULT(3 + 2, 4 + 2);. The Desired output is 3+2=5 and 4+2=6 And 5*6 to be 30.

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded Klas Lindbäck
Error: User Rate Limit Exceeded Jens Gustedt
Error: User Rate Limit Exceeded Paul R

Ваш Ответ

2   ответа
0

Error: User Rate Limit Exceeded

#define MULT(x, y) ((x) * (y))

Error: User Rate Limit ExceedednotError: User Rate Limit Exceeded

Error: User Rate Limit Exceededz/MULT(x, y)
10

Error: User Rate Limit Exceeded

#define MULT(x, y) ((x)*(y))
Error: User Rate Limit Exceeded Katti
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceededx * yError: User Rate Limit Exceeded
Error: User Rate Limit Exceeded Katti
Error: User Rate Limit Exceeded

Похожие вопросы