开发者

Is Array of size 0 illegal by definition?

开发者 https://www.devze.com 2023-02-05 17:59 出处:网络
Is Array of size 0 illegal b开发者_如何学Goy definition or it depends on language? It is not illegal by definition, yet it does depend on the language.Java is fine with it, depending on the compiler u

Is Array of size 0 illegal b开发者_如何学Goy definition or it depends on language?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号