Card 52 / 54: 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) int myList [] = {4, 3, 7};
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |