Which of the following declaration is illegal?
Answer: D
char[ ] str is a declaration in Java, not in C.