I have recently been thinking about the difference between the two ways of defining an array:
int[] arrayint array[]
As already stated, there's no much difference (if you declare only one variable per line).
Note that SonarQube treats your second case as a minor code smell:
Array designators "[]" should be on the type, not the variable (squid:S1197)
Array designators should always be located on the type for better code readability. Otherwise, developers must look both at the type and the variable name to know whether or not a variable is an array.
Noncompliant Code Example
int matrix[][]; // Noncompliant int[] matrix[]; // NoncompliantCompliant Solution
int[][] matrix; // Compliant