× Didn't find what you were looking for? Ask a question
Top Posters
Since Sunday
w
3
w
3
e
3
3
r
3
b
2
M
2
V
2
f
2
c
2
c
2
K
2
New Topic  
Izaganag Izaganag
wrote...
Posts: 686
Rep: 2 0
9 years ago
What does the following code do?  Assume list is an array of int values, temp is some previously initialized int value, and c is an int initialized to 0.
   for (int j = 0; j < list.length; j++)
      if (list[j] < temp) c++;
A) It counts the number of elements equal to the smallest value in list
B) It finds the largest value and stores it in temp
C) It counts the number of elements in list that are less than temp
D) It sorts the values in list to be in ascending order
E) It finds the smallest value and stores it in temp
Textbook 
Java Software Solutions: Foundations of Program Design

Java Software Solutions: Foundations of Program Design


Edition: 7th
Authors:
Read 192 times
2 Replies

Related Topics

Replies
wrote...
9 years ago
C
Izaganag Author
wrote...
9 years ago
I regret taking this computer science course. Should just stick to history Face with Stuck-out Tongue Thanks for your help.
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  465 People Browsing
Related Images
  
 333
  
 304
  
 323
Your Opinion
Which is the best fuel for late night cramming?
Votes: 233

Previous poll results: Where do you get your textbooks?