5
answers
0
watching
322
views
11 May 2018

33. What is the second value printed by the program to the right? A.-1 B.O C.5 D.7 E.10 void setup() { int[] data = { 7, 10, 3, io, 6, 7, 15, 10, 10 System.out.println(func1(10, data)); System.out.println(func1(7, data)); 1/ look close - this is not quite the // same function as before int funci(int x, int[] data) { for(int i = data.length-1; i >= 0; i--) if (data[i] == x) return i; return -1;

For unlimited access to Homework Help, a Homework+ subscription is required.

Unlock all answers

Get 1 free homework help answer.
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Nestor Rutherford
Nestor RutherfordLv2
13 May 2018
Already have an account? Log in

Related questions

Related Documents

Weekly leaderboard

Start filling in the gaps now
Log in