输出47如何?

How is the output 47?

#include<stdio.h>
#include<conio.h>   
#define FIRST_PART 7
#define LAST_PART 5
#define ALL_PARTS FIRST_PART+LAST_PART
 int main() 
 {
    printf ("The Square root of all parts is %d", ALL_PARTS * ALL_PARTS) ;
    getch();
    return(0);
}

在上面的代码中,FIRST_PART 被定义为 7

LAST_PART 定义为 5

和ALL_PARTS初始化为FIRST_PART+LAST_PART(理想情况下为12)

但是当我打印时 ALL_PARTS * ALL_PARTS 给我 47 作为输出!(但我认为答案是 144)

谁能告诉我怎么做?

答案应该是 47

FIRST_PART + LAST_PART * FIRST_PART + LAST_PART

MULTIPLICATION HAS MORE PRECEDENCE

SO 7 + 5 * 7 + 5

 7 + 35 + 5

47