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

I NEED HELP WITH PART ONE AND TWO WILL GIVE 60 points Part 1 is in the picture 2. Consider all parts of the experiments that you have just performed Score Wha
please help mee Explain why both Martin Luther AND Henry VIII broke away from the Catholic Church.
What tuberculosis means "
What is Civil disobedience? please explain
Which of these is the best definition of 'Cult of Personality' as used by Stalin? Select one: A.) A competition held each year to praise the Soviet worker who h
PLEASE HELP MEEEEE 20 PTS
PLEASE HELP I WILL GIVE BRAINLIEST
Emmeline Pankhurst Speech: Freedom or death - Hartford, Connecticut on November 1913 I am here as a soldier who has temporarily left the field of battle in orde
Three times a number minus nine is zero. What is the number? Write the two step equation. Use x for the variable. Now solve for x.
4 * 10*6 than 1 * 10*4