Which will legally declare, construct, and initialize an array?
A.int [] myList = {"1", "2", "3"};
B.int [] myList = (5, 8, 2);
C.int myList [] [] = {4,9,7,0};
D.int myList [] = {4, 3, 7};
Answer:D
Which will legally declare, construct, and initialize an array?
A.int [] myList = {"1", "2", "3"}; B.int [] myList = (5, 8, 2); C.int myList [] [] = {4,9,7,0}; D.int myList [] = {4, 3, 7};