最佳答案:sizeof(a)的值是在编译时刻确定的,所以如果你在程序里面这样来做:int a[] = {1, 2, 3, 4, 5};int len = sizeof(a)/sizeof(a[0]);那么没有问