Does INT_MIN % -1 produce undefined behavior?

后端 未结 0 1402
失恋的感觉
失恋的感觉 2021-02-12 06:45

gcc generates floating code that raises SIGFPE for the following code:

#include 
int x = -1;
int main()
{
    return INT_MIN % x;
}
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题