Which of the following is the correct syntax to declare an array of ten integers? a. int

Question:

Which of the following is the correct syntax to declare an array of ten integers?

a. int a[10] = new int[10];

b. int[10] a = new int[10];

c. []int a = [10]int;

d. int a[10];

e. int[] a = new int[10];

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

Step by Step Answer:

Related Book For  book-img-for-question

Building Java Programs A Back To Basics Approach

ISBN: 9780135471944

5th Edition

Authors: Stuart Reges, Marty Stepp

Question Posted: