Passing pointer

when we pass argument in prime_seive why we take pointer variable we can directly pass the array too

hello @TheSourabh
yeah basically both are same thing.
when we write something as
f(int a[]) then it is equivalent to f(int * a)

in both the cases only base address of array is passed

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.