Is Array of size 0 illegal by definition or it depends on language?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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