Question: what does the following line do: foo = new int [ 5 ] ; Group of answer choices it declares foo as a variable that

what does the following line do:
foo = new int[5];
Group of answer choices
it declares foo as a variable that can point to an array of int
it creates an array of int
it is incorrect
after this line you can access the array foo, e.g. foo[0]
none of the other answers is correct

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!