This flashcard is just one of a free flashcard set. See all flashcards!
11
Which of the following is invalid syntax for declaring, creating and initializing an array?
A) double [ ] myList = {1.9, 2.9, 3.4, 3.5};
B) double myList [ ] = {1.9, 2.9, 3.4, 3.5};
C) [ ] double myList = {1.9, 2.9, 3.4, 3.5};
D) None of the above statements is invalid.
A) double [ ] myList = {1.9, 2.9, 3.4, 3.5};
B) double myList [ ] = {1.9, 2.9, 3.4, 3.5};
C) [ ] double myList = {1.9, 2.9, 3.4, 3.5};
D) None of the above statements is invalid.
C) [ ] double myList = {1.9, 2.9, 3.4, 3.5};