有符号整数判断溢出的乘法

不溢出 输出为1,溢出输出为0 return int tmult_ok(int x, int y ) {         int p = x*y;         return !x || p/x == y; }
相关文章
相关标签/搜索