Pointers and array

why is int*a used here instead of int a[n]
also why are we using int a[ ];
why is it not coming under compilation error

@asaraf2407
hello ayush,
please share the code that u r are referring to, so that i can help u.

pls refer to the code at 4:45 in this video itself

in the function of bool isSorted

can u please share the screenshot .

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.