• 코드:
​x
 
1
#include <stdio.h>
2
#define SQR(X) ((X)*(X))
3
#define PRT(X) printf("계산 결과는 %d입니다.\n", X)
4
​
5
int main(void)
6
{
7
    int result;
8
    int x = 5;
9
    
10
    result = SQR(10);
11
    PRT(result);
12
    result = SQR(x);
13
    PRT(result);
14
    result = SQR(x+3);
15
    PRT(result);    
16
    return 0;
17
}
18
​
표준입력 & 실행옵션