This is well known code to compute array length in C:
sizeof(array)/sizeof(type)
But I can\'t seem to find out the length of the array pass
Best example is here
thanks #define SIZE 10
void size(int arr[SIZE]) { printf("size of array is:%d\n",sizeof(arr)); } int main() { int arr[SIZE]; size(arr); return 0; }