这是未定义行为的性质。
是int_min从任何被认为是未定义行为整数减去?
Is INT_MIN subtracted from any integer considered undefined behavior?
去除代码中的未定义的行为,或者使用断言来抓住未定义行为的非法使用。
Strip undefined behavior from your code, or use assertions to catch illegal USES of undefined behavior.
它触发“未定义行为”,编译器是有权使程序崩溃的时刻你做,或者更糟。
It triggers "undefined behavior"; the compiler is entitled to crash your program the moment you do it, or worse.
是的。它触发“未定义行为”,编译器是有权使程序崩溃的时刻你做,或者更糟。
Yes. It triggers "undefined behavior"; the compiler is entitled to crash your program the moment you do it, or worse.
即使它的地址,你将面临由于这是当地的一个阵列,其结束生命后退出范围未定义行为。
Even if it's the address, you will face undefine behavior since it's a local array which ends its life after exitting the scope.
我不知道如果它结束了和“未定义行为”或“你真不应该这样做一些其他的分类,这是错误的”。
I'm not sure if it ends up beting "Undefined behaviour" or some other classification of "You shouldn't really be doing this, it's wrong".
我不知道如果它结束了和“未定义行为”或“你真不应该这样做一些其他的分类,这是错误的”。
I'm not sure if it ends up beting "Undefined behaviour" or some other classification of "You shouldn't really be doing this, it's wrong".
应用推荐