+ 1
What exactly does "initialization of arrays" mean?
7 Réponses
+ 6
int[] someArray = new int[4];
int[] someArray = new int[4] {1,2,3,4};
int[] someArray = new int[] {1,2,3,4};
int[] someArray = {1,2,3,4};
+ 4
The process of assigning values to the array elements is called array initialization.
+ 3
If you have an int array, the initialization of it is:
int arr[] = {1, 3, 2, 29};
+ 1
Martin Taylor I don't know he use c++ I only tells that the declaration done by Amanbek Orynbay is correct
0
Answer by Amanbek Orynbay is correct because we use this type of declaration in Java