int add(int a, int b)
{
printf("%d + %d/n", a, b);
return a + b;
}
void main()
{
#ifdef _DEBUG
printf("In debug/n");
#else
printf("In Release/n");
#endif
int n = add(1, 2) + add(3, + 4);
}
/*
In debug
1 + 2
3 + 4
Press any key to continue
In Release
3 + 4
1 + 2
Press any key to continue
*/
int n = add(1, 2) + add(3, 4) 哪个先执行?
最新推荐文章于 2022-08-24 22:35:27 发布