1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Diano4ka-milaya [45]
3 years ago
14

What does the following code print out? (10 points) int[] array = { 1, 4, 3, 6, 8, 2, 5}; int what = array[0]; // scan the array

for ( int index=0; index < 7; index++ ) { if ( array[index] < what ) what = array[ index ]; } cout << what << endl;
Computers and Technology
1 answer:
pav-90 [236]3 years ago
5 0

Answer:

1

Explanation:

You need to change array initialization as shown below, otherwise you get an error.

int array[] = { 1, 4, 3, 6, 8, 2, 5};

An array is created with the given numbers.

The first number in the array is assigned to what.

A for loop is created to scan the array. Inside the loop, every element in the array is compared to what. If the value of an element in the array is less than the value of the what, then it is assigned as a new what.

When the loop is done, print the last value of the what

You might be interested in
The CPU converts into information. The CPU is the mastermind of the computer, controlling everything that goes on through a seri
Harman [31]

Answer:

Mathematical sequences

Explanation:

Just did it

5 0
3 years ago
Read 2 more answers
System software includes all of the following except
Amanda [17]

Answer:

System software includes all of the following except <u>Browsers</u>.

Explanation:

I just know

4 0
3 years ago
In Microsoft word when you highlight existing text you want to replace , you're in?
lorasvet [3.4K]

Insert Mode

[insert 20 characters]

6 0
4 years ago
You are connected to a server on the Internet and you click a link on the server and receive a time-out message. What layer coul
Grace [21]

Answer: Application layer

Explanation: Application layer is the level in the OSI model which carries out the function of the abstraction in the network.The abstraction works by maintaining the interface between application and network.

It helps in the transferring of the information and data as well using the protocols. So,if any time out message alert is received  by clicking on the link then the server condition is usually busy and thus cannot respond. In this case application layer is responsible for the problem.

7 0
3 years ago
Translate each of the following binary representations into its equivalent base ten representation.
Semenov [28]

Answer:

12, 2.375, 0.25, 17

Explanation:

A. 2^3 + 2^2 = 12

B. 2^1 + 2^-2 + 2^-3 = 2.375

C. 2^-2 = 0.25

D. 2^4 + 2^0 = 17

3 0
4 years ago
Other questions:
  • What is the first step to creating a PivotTable?
    9·2 answers
  • The different concepts in the architecture operating model are aligned with how the business chooses to integrate and standardiz
    10·2 answers
  • Which group on the Home Ribbon contains the line spacing attribute?
    9·2 answers
  • A microphone is a type of electronic.<br><br> True/Faulse
    14·1 answer
  • In which step of web design is storyboarding helpful?
    14·1 answer
  • 1. What is Computer Hardware?
    14·1 answer
  • Why dose this keep popping up i dont understand plz resond first person gets branilest
    13·1 answer
  • A __________ search engine focuses on a specific subject.<br><br>answer : Specialized
    8·1 answer
  • Identify at least five different Arts, A/V Technology, and Communications careers that you could pursue in your home state, and
    11·1 answer
  • Legends are titles given to three-axis X, Y, and Z-axis. True or false?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!