Closed Liuyufanlyf closed 3 years ago
原本的程序 result /= -result;, 当 result = 0 时在 GCC 编译的程序会得到 -1 的结果,导致程序错误 While result equals 0, The code result /= -result; compiled by GCC return -1, lead to display error.
result /= -result;
谢谢~
原本的程序
result /= -result;
, 当 result = 0 时在 GCC 编译的程序会得到 -1 的结果,导致程序错误 While result equals 0, The coderesult /= -result;
compiled by GCC return -1, lead to display error.