当前位置:网站首页>Possible causes of runtime error
Possible causes of runtime error
2022-07-02 02:52:00 【kfc++】
runtime error ( Runtime error ) It's halfway through the program , The program crashed .
Such as :
① Divide by zero
② An array :int a[3]; a[10000000]=10;
③ The pointer is out of bounds :int * p; p=(int *)malloc(5 * sizeof(int)); *(p+1000000)=10;
④ Use the free space :int * p; p=(int *)malloc(5 * sizeof(int));free(p); *p=10;
⑤ The array is too large , Out of stack , Cause stack overflow :int a[100000000]; Generally speaking , Sometimes such errors will be prompted again
Runtime Error(ARRAY_BOUNDS_EXCEEDED) // array bounds exceed An array
Runtime Error(DIVIDE_BY_ZERO) //divisor is nil Divide by zero
Runtime Error(ACCESS_VIOLATION) //illegal memory access Illegal memory read
Runtime Error(STACK_OVERFLOW) //stack overflow System stack overload
边栏推荐
- 【带你学c带你飞】3day第2章 用C语言编写程序(练习 2.3 计算分段函数)
- [learn C and fly] 3day Chapter 2 program in C language (exercise 2.3 calculate piecewise functions)
- es面試題
- [staff] diacritical mark (ascending sign | descending sign B | double ascending sign x | double descending sign BB)
- 【读书笔记】程序员修炼手册—实战式学习最有效(项目驱动)
- 結婚後
- 2022-2028 global soft capsule manufacturing machine industry research and trend analysis report
- AcWing 245. Can you answer these questions (line segment tree)
- 使用 useDeferredValue 进行异步渲染
- Es interview questions
猜你喜欢
[staff] the direction of the symbol stem and the connecting line (the symbol stem faces | the symbol stem below the third line faces upward | the symbol stem above the third line faces downward | the
CVPR 2022 | Dalian Institute of technology proposes a self calibration lighting framework for low light level image enhancement of real scenes
Additional: information desensitization;
2022-2028 global aluminum beverage can coating industry research and trend analysis report
Pat a-1165 block reversing (25 points)
Build a modern data architecture on the cloud with Amazon AppFlow, Amazon lake formation and Amazon redshift
Golang configure export goprivate to pull private library code
【带你学c带你飞】2day 第8章 指针(练习8.1 密码开锁)
[staff] pitch representation (bass clef | C1 36 note pitch representation | C2 48 note pitch representation | C3 60 note pitch representation)
2022-2028 global nano abrasive industry research and trend analysis report
随机推荐
Comparative analysis of MVC, MVP and MVVM, source code analysis
What are the characteristics of common web proxy IP
LFM信号加噪、时频分析、滤波
Mathematics in Sinorgchem: computational geometry
【带你学c带你飞】4day第2章 用C语言编写程序(练习 2.5 生成乘方表与阶乘表
【带你学c带你飞】1day 第2章 (练习2.2 求华氏温度 100°F 对应的摄氏温度
The video number will not be allowed to be put on the shelves of "0 yuan goods" in the live broadcasting room?
QT implementation interface jump
Share the basic knowledge of a common Hongmeng application
Questions d'entrevue
Kibana操控ES
CoordinatorLayout + TabLayout + ViewPager2(里面再嵌套一个RecyclerView),RecyclerView的滑动冲突解决
浅谈线程池相关配置
批量检测url是否存在cdn—高准确率
MySQL operates the database through the CMD command line, and the image cannot be found during the real machine debugging of fluent
buu_ re_ crackMe
trading
[learn C and fly] 1day Chapter 2 (exercise 2.2 find the temperature of Fahrenheit corresponding to 100 ° f)
JVM面试篇
[staff] restore mark (Introduction to the use of restore mark | example analysis of Metaphone mark and restore mark)