for some odd reason when I run this code:
int func(int arr[],int n) {
int a = *(&arr + 1) - arr;
printf("%d",a);
}
I get an address,
and when I run the same code inside main I get the length of the array.
any idea why?
I ran it inside main and it gave me the length of an array, and when I ran it inside a function it gave me an address.