Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+9 votes

Why having so many syntax for array initialization?

asked in CSC350 by (2.7k points)

2 Answers

+3 votes

Yeah I never figured that part out...

Any luck?

answered by (8 points)
+2 votes

The many different syntaxes for array initialization are because of the many different kinds of arrays that languages can have. For example, character strings can be represented as arrays and arrays can also be comprised of strings.

answered by (5.6k points)
...