+ 2

how can i pass arrays as arguments to function

i try to access length of an array and m making a function for the same. now i want to pass array to the function. how to do this?

10th Oct 2017, 5:07 PM
shobhit
shobhit - avatar
2 ответов
+ 2
i m asking about c++ not java bro.
11th Oct 2017, 9:17 AM
shobhit
shobhit - avatar
0
class A { static void B(int[] arr) { System.out.println(arr.length); } public static void main (String [] args) { int array[] =new int[3] ; B(array) ; } }
10th Oct 2017, 5:29 PM
Chinmoy
Chinmoy - avatar