Which of the following statements will compile without an error?
Click to view the answer
a and d
The number of elements in an array declaration is not used in the declaration.
However, we can use the following:.
int arr[] = new int[5];