Array index out of bound in C

后端 未结 10 1114
抹茶落季
抹茶落季 2020-11-21 21:58

Why does C differentiates in case of array index out of bound

#include 
int main()
{
    int a[10];
    a[3]=4;
    a[11]=3;//doe         


        
10条回答
  •  一向
    一向 (楼主)
    2020-11-21 22:38

    C philosophy is always trust the programmer. And also not checking bounds allows the program to run faster.

提交回复
热议问题