Q. Which of the following Array declaration statement is illegal ?
A. int[] a [ ] = new int [4] [4];
B. int a[ ][ ] = new int [4] [4];
D. int[] a [ ] = new int [4] ( );
O C. int a[][] = new int [] [4];
Answers
Answered by
0
Answer:
answer..
Explanation:
int[10] a type, so that, for example, type(int[10]) != type(int[5])
Answered by
0
int[10] a type.
So that, for example, type(int[10]) != type(int[5])
Which of the following are invalid array declaration?
- Operator new must be succeeded by array type and array size.
Which of these are legal array declarations or definitions?
- With an array declaration, you can place the brackets to the right or left of the identifier. but it's perfectly legal to split the brackets in a multidimensional array, and place them on both sides of the identifier.
Which of the following is illegal declaration?
- char[] str is a declaration in Java, but not in C. 2.
#SPJ2
Similar questions