What is wrong with the following code fragment? int[] a; for (int i = 0; i <

Question:

What is wrong with the following code fragment?

int[] a;

for (int i = 0; i < 10; i++)

a[i] = i * i;

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

Step by Step Answer:

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