Question: after these statements what is true int [ ] foo = { 1 0 , 5 , 2 , 1 } ; foo [ 1

after these statements what is true
int [] foo ={10,5,2,1};
foo[1]= foo[0]+3;
Group of answer choices
foo[0] is 10
foo[1] is 13
foo[2] is 5
this is a complete time error
this is a runtime error
none of the other answers is correct
foo[1] is 5
foo[1] is 10

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!