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;
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;
5
answers
0
watching
322
views
For unlimited access to Homework Help, a Homework+ subscription is required.
28 Jun 2023
gloryolalere280Lv10
20 Nov 2022
Already have an account? Log in
16 Apr 2022
Already have an account? Log in
Nestor RutherfordLv2
13 May 2018
Already have an account? Log in