Passing Array as an argument

Ek question hai
jab ham log array ko pass karate hai as an argument, then how can we write a function jis mai kisi bhi type ka array pass kar sake.

hi @ritikbunty2511_729d0258992e0982 what do u mean y kisi bhi type ka array?

array of type int (int arr[]), float (float arr[])

@ritikbunty2511_729d0258992e0982 u need to know the type before else u cant pass array, int , float pehle pata hona parega

but bhaiya for example in reverse() function we can pass int array, string array, etc.

[quote=“ritikbunty2511_729d0258992e0982, post:5, topic:178361”]
function we can pass int array, string array, etc.

they take address to the elements

have u done OOPS? @ritikbunty2511_729d0258992e0982

OOPS abhi nhi kiya hai

overloading bhi hoti function overloading k baare me padh sakte

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.