Why did the (M + 1) * M=9, bosses, o NUM is equal to 8, guide #include # define N 2 # define M N + 1 # define NUM (M + 1) * M/2 The main () { Printf (" % d \ n ", M); Printf (" % d \ n ", M + 1); Printf (" % d \ n ", (M + 1) * M); Printf (" % d \ n ", NUM);
CodePudding user response:
macro definition is equivalent to replace?M==(M + 1) * (N + 1 + 1) * N + 1==(2 + 1 + 1) * 2 + 1=9