未分类题

以下程序的输出结果是______。 #include<stdio.h> #define FUDGE(y) 2.84+y #define PR(a) printf('%d',(int)(a)) #define PRINT() PR(s) ;putchar('/n') main() { intx=2; PRINT1 (FUDGE(5)*x); }
A.11
B.12
C.13
D.15

A.h>
B.84+y
C.11
B.12
C.13

【参考答案】

B
解析:在程序中如果有带实参的宏,则按#define命令行中指定的字符串从左到右进行置换,如果串中包含宏中的形......

(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)