Difference between int[] array and int array[]

前端 未结 25 2965
轻奢々
轻奢々 2020-11-21 07:18

I have recently been thinking about the difference between the two ways of defining an array:

  1. int[] array
  2. int array[]
  3. <
25条回答
  •  情深已故
    2020-11-21 08:13

    There is no difference in functionality between both styles of declaration. Both declare array of int.

    But int[] a keeps type information together and is more verbose so I prefer it.

提交回复
热议问题