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

List of muscles innervated by median nerve
Need Done ASAP ! Please help , will mark brainliest :) thanks
PLEASE HELP IM GIVING A LOT OF POINTS! I'm losing a rank because of this!1.Beatrice is pushing a heavy box. She pushes with a force of 40 N. How can you determ
Marleen, an obese adult, lost 20 pounds over the course of a year. within the next two years, she is most likely to
Triangle ABC is dilated with a center at the origin and a scale factor of 2. What are the coordinates of triangle A’B’C’?
Acute coronary syndrome is a group of symptoms caused by what?
The set of complex numbers is closed under subtraction. true or false
Help!!!!!!!!!!!!!!!!!!!!!!!!!
3 Rules associated with the land distribution policy.
Can somebody please help me with this it was due yesterday1. Benedictines were scholarly nuns. True False2. Members of the Order of Holy Trinity offered themsel