Which of the following is the correct syntax to declare an array of the given six integer

Question:

Which of the following is the correct syntax to declare an array of the given six integer values?

a. int[] a = {17, -3, 42, 5, 9, 28};

b. int a {17, -3, 42, 5, 9, 28};

c. int[] a = new int[6] {17, -3, 42, 5, 9, 28};

d. int[6] a = {17, -3, 42, 5, 9, 28};

e. int[] a = int [17, -3, 42, 5, 9, 28] {6};

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: