0
Hi y'all :>> I'm new to this app, I'd like to ask, how to pass an array in a user-defined function in c++?? thanks!
3 odpowiedzi
0
Use pointer of the type of array you want to pass that should do it
0
Like if you want a integer array to pass then you can say void fun(int * arr) and you will be able to access index wise inside the function similar to outside.