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

how do you balance __H2SO4 + __B(OH)3 --> __B2(SO4)3 + __H2O
Hey guys, I need 5 sentences!¿Prefieres viajar en coche, en tren, en barco o en avión? ¿Por qué?
What are the advantages and disadvantages of globalization
Hey guys, I need 5 sentences!¿Prefieres viajar en coche, en tren, en barco o en avión? ¿Por qué?
how do you balance __H2SO4 + __B(OH)3 --> __B2(SO4)3 + __H2O
What are the advantages and disadvantages of globalization
Hey guys, I need 5 sentences!¿Prefieres viajar en coche, en tren, en barco o en avión? ¿Por qué?
Hey guys, I need 5 sentences!¿Prefieres viajar en coche, en tren, en barco o en avión? ¿Por qué?
Hey guys, I need 5 sentences!¿Prefieres viajar en coche, en tren, en barco o en avión? ¿Por qué?
What are the advantages and disadvantages of globalization