Array Declarations Revisited
The brackets of the array type can be associated with the element type or with the name of the array
Therefore
float[] prices;
and
float prices[];
are essentially equivalent
The first format is usually more readable
Previous slide
Next slide
Back to first slide
View graphic version