-4
int [           ] a;

任何人都可以描述这一行中发生的事情。[] 之间有空格。

4

1 回答 1

1

You are defining a reference to an array which is presently null, and therefore of undefined size.

This is correct syntax. The spaces in between square brackets are not relevant.

Here is some proper further usage:

int [] a = new int[10];
于 2013-06-24T11:22:00.400 回答