jawonelliott5513 jawonelliott5513
  • 04-07-2019
  • Computers and Technology
contestada

What does the following function return? void index_of_smallest(const double all, int startindex, int numberOfSlots); A. a double B, numberOflots C. an integer D. nothing

Respuesta :

PhantomWisdom PhantomWisdom
  • 11-07-2019

Answer:

nothing

Explanation:

Because the return type of the function is void. void means does not return any thing.

The syntax of the function:

type name( argument_1, argument_2,......)

{

  statement;

}

in the declaration the type define the return type of the function.

it can be int, float, double, char, void etc.

For example:

int count( int index);

the return type of above function is int. So, it return integer.

similarly,

void count(int index);

it return type is void. So, it does not return any thing.

Answer Link

Otras preguntas

What is the volume of the composite figure shown? (Use 3.14 for π.) 1,282.17 ft 3 2,000.18 ft 3 1,988.26 ft 3 1,384.74 ft 3
The Mediterranean basin countries: Spain, Portugal, Italy, Greece, Turkey, Tunisia and Morocco, produce 90% of the world's olive oil supply. What is the most
Binary fission is the most common form of reproduction in _____.
how can you estimate 642 fl oz in cups
What is 0.89 fraction in simplest form?
What are disadvantages and advantages of parallel circuits
how do find the area of a shoe box
percent increase from 86 to 150
A carpenter has a board that is 8 feet long. He cuts off two pieces. One piece is 3 1/2 feet long and the other is 2 1/3 feet long. How much of the board is le
Which supports the hypothesis that life has changed over time? A. Organisms differ from one part of the world to another. B. The atmosphere of the early earth w