Getting wrong value of size of array inside the merge() function

For this input:

5
3 6 4 1 2

When I am trying to calculate the size of the array inside the merge() function, using (sizeof(a)/sizeof(a[0])), then the value of this is 2 but it should have been 5 instead. What is the reason for the size being calculated as 2 inside the merge() function?

send the link of code so that i can see what is happening

I searched a bit and found the reason for this.


yes they are absolutely correct

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.