LENGTH OF ARRAY IS 3 BUT I HAVE ADDED 4 ELEMENTS IN IT. WHY? (IN C LANGUAGE)

前端 未结 0 1535
臣服心动
臣服心动 2021-01-15 21:39
#include 
#include 
int main(){
    int arr[] = {1,2,3};
    arr[3] = 4;
    printf("%d",sizeof(arr) / sizeof(1)); //TO print         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题