我见过的极品代码bug
嵌入式Linux
共 596字,需浏览 2分钟
·
2021-10-22 00:24
#include
using namespace std;
int main () {
cout << sizeof(int) << endl;
int a = 0x7FFFFFFF;
cout << a << endl;
a = a +1;
cout << a << endl;
return 0;
}
评论
共 596字,需浏览 2分钟
·
2021-10-22 00:24
#include
using namespace std;
int main () {
cout << sizeof(int) << endl;
int a = 0x7FFFFFFF;
cout << a << endl;
a = a +1;
cout << a << endl;
return 0;
}