Array Swap 3 DBT in why arrays did not swap

If we are looking at the array swapping logic in 3 then the same logic shld apply to 2 , should’nt it as in function that we introduce below same thing is happening in both the cases and so arr [i] and arr[j] to should not be interchanged as pointers keep pointing to their respective locations only local function variables get interchanged…

Hi Lakshay Can you please explain your doubt a little bit more

I mean in Array swap 3 our two arrays did not swap locations when we used swap function however our arrays i and j swapped locations in array swap 2 video. I did not understand why. Garima mam explained with the help of pointers in Swap 3 video but if we look at that logic shouldnt the same logic apply to swap2 video as only local variables are interchanging in our swap function.