📜  数组长度 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:35.055000             🧑  作者: Mango

代码示例4
int a[17]; // initializing an array
int length = sizeof(a)/sizeof(a[0]); // divide array size(in byte)/ size of the first element of the array of the same type, here int(integer size is 4byte)