I passed a array to function and tried to find the length of the array . but the result was not expected . can anybody explain please?
int main()
{
int arra
You are sending and recieving a array pionter, not the array.
while sending arg::
func(array[10]);
While Receiving arg:
void func(int array[10])
But it's not good to send the total array. So send and receive arguments like below.
func(array, arry_size); //function call
void func(int array[], int length) //defin