testovf.c
来自「cpu的源码」· C语言 代码 · 共 17 行
C
17 行
//! A test program to deliberatly cause and overflow exception/*! This program will add numbers together until it overflows */// #include <limits.h>#ifndef INT_MAX#define INT_MAX 2147483647#endifint main(){ int i; i = INT_MAX; i++; // Integer overflow return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?