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

20, 22, 24 & 26.Find the coordinates of the midpoint of a segment with the given endpoints using the Midpoint formula. Show your work.​
4x to the second power +5x when x=1
Ryan is thinking of a number. when he multiples this number by 6 and then subtracts 15 from it, he ends up with his original number. what is the number?
3 different numbers that have a multiple of 36?
If the radius of a circle is 8, what is the diamteer?
i will brailly helppppppppppppppppppppppppppppppppp
A 15-year-old adolescent is diagnosed with endometriosis. The client has severe, acute, and incapacitating symptoms. Which would be the anticipated line of trea
What is the slope of the line?
If you subtract 13 from my number and multiply the difference by −7​, the result is −98​." What is Elise​'s ​number
Simplify the radical expression