Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+10 votes

Why having so many syntax for array initialization?

asked in CSC350 by (1 point)

2 Answers

+3 votes

Yeah I never figured that part out...

Any luck?

answered by (1 point)
+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 (1 point)
...