Normally to find the size of the array, we do..
int A[]={1,2,67,9,0,-1,-90};
int n=sizeof(A)/sizeof(A[0]);
printf("the size of the array is %d\n", n);`
The output of the above code shows size as 7. But when A is put into some pointer and then, if we try to do the same, it shows
int A[]={1,2,67,9,0,-1,-90};
int *B=A;
int n=sizeof(B)/sizeof(B[0]);
printf("the size of the array is %d\n", n);
the answer is 2
How do I find the size of the array using this pointer.