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 contains the asthenosphere and the lower mantle
what is the percent efficiency of a light bulb that emits 14 joules of light for every 60 joules of electric energy thst enters it?
in what phase can we not see the moon from earth
Why can't a triangle have more than one obtuse angle?
What is a between-subject design?
what did japanese accuse the united states for doing ?
To function properly, a rainwater outflow pipe must drop exactly 1 inch for every 25 inches of horizontal distance. A 40 feet long rainwater pipe runs under the
________________________ is symmetry around a point, as in a sea star. Bilateral Symmetry Radial Symmetry Asymmetry
A metaphor is a kind of — a. stanza c. comparison b. simile d. poem
max said that he and Gwen cannot equally share $7.80 because 6 one dollars bills cannot be divided into two groups .is Max correct