Computer Science, asked by kundan1451, 7 months ago

Find the errors in the code int a= new int(5);
for(i=o;i<=a.length;i++)
a[i];

Answers

Answered by Vikas8271
1

Answer:

int a= new int(5);

for(i=o;i<a.length;i++)

a[i];

Explanation:

because there is only 5 spaces occupied for a.but the loop will run 6 times..

Similar questions