📜  在 C 编程语言代码示例中查找数组的长度

📅  最后修改于: 2022-03-11 15:04:44.779000             🧑  作者: 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)