int[]数组和int数组[]的区别 [英] Difference between int[] array and int array[]
本文介绍了int[]数组和int数组[]的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
最近一直在思考定义数组的两种方式的区别:
I have recently been thinking about the difference between the two ways of defining an array:
int[] 数组
int array[]
有区别吗?
推荐答案
它们在语义上是相同的.int array[]
语法只是为了帮助 C 程序员习惯 java.
They are semantically identical. The int array[]
syntax was only added to help C programmers get used to java.
int[] 数组
更可取,而且不那么混乱.
int[] array
is much preferable, and less confusing.
这篇关于int[]数组和int数组[]的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文