int data[4],length;
int
data[4],length;
length=
sizeof
(data)/
(data[0]);
//数组占内存总空间除以单个元素占内存空间大小,即等于元素个数
printf
(
"length of data[4]=%d"
, length );
//输出length of data[4]=4