should be a simple question
i want to get the length of an int array
i tried sizeof(arr) <- returns 4
and i tried sizeof(arr)/sizeof(arr[0]) <- returns 1
the length is 9
when i do
printf("%d", sizeof(arr)/sizeof(arr[0])) it prints 9
but i want to do something like
size = sizeof(arr)/sizeof(arr[0]) and it gives me 1
what am i missing here ?
thanks all helpers