Is Array of size 0 illegal by definition or it depends on language?
Asked
Active
Viewed 352 times
0

skaffman
- 398,947
- 96
- 818
- 769

There is nothing we can do
- 23,727
- 30
- 106
- 194
-
4"Array" means radically different things in different languages. Please be more specific. – sinelaw Jan 19 '11 at 13:30
-
By definition of *which language*? – dmckee --- ex-moderator kitten Feb 20 '11 at 17:56
1 Answers
1
It is not illegal by definition, yet it does depend on the language. Java is fine with it, depending on the compiler used in C you might have trouble with it but in general it works there too.
Somewhat related discussion on C++ and zero length arrays: Array of zero length