有關宏的一個問題

#include<stdio.h> #define MAX(A,B) A>B?2*A:2*B void main() { int a=1,b=2,c=3,d=4,t; t=MAX(a+b,c+d); printf("%d/n",t); } code     這個程序的運行結果是10而不是14字符串 緣由:io 宏是字符串替換class t = MAX(a+b,c+d) = a+b>c+d ?
相關文章
相關標籤/搜索