// 检查溢出 if (reverse_x > (INT_MAX - dig) / 10) { return 0; // 溢出,返回 0 }
本文来自博客园,作者:东岸,转载请注明原文链接:https://www.cnblogs.com/donghao99/p/18362354