Does INT_MIN % -1 produce undefined behavior?

后端 未结 0 2036
無奈伤痛
無奈伤痛 2021-02-12 06:37

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

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


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