程序员面试宝典第28页,书中的答案是9,49
而正确的答案应该是,12,42
3*4 = 12
6*7 = 42
1 #include <stdio.h> 2 #define product(x) ((x)*(x)) 3 int main(int argc, char **argv) { 4 printf("Hello, World!\n"); 5 int i=3,j,k; 6 j = product(i++); 7 k = product(++i); 8 printf("j = %d,k = %d",j,k); 9 return 0; 10 11 }
标签:面试题,++,42,product,int,printf From: https://www.cnblogs.com/xhu218/p/16885010.html