假设我有以下c
功能:C - 数组中的元素数量?
int MyFunction(const float arr[])
{
// define a variable to hold the number of items in 'arr'
int numItems = ...;
// do something here, then return...
return 1
}
我怎样才能进入numItems
在阵列arr
中的项目数量?
我记得我用来做大小另有说法为这样那样的功能.. [静态数组元素的数量的 – mihsathe
可能重复和动态数组](http://stackoverflow.com/questions/2577711/number-of-elements-in-static-array-and-dynamic-array) – sth