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

Which political theory has been interpreted to mean that a president can shield critical information from Congress as a result of the separation of powers?
Identify as expression or equation 9=2x-4
HOW DID EUROPEAN NATIONS BUILD EMPIRES IN SOUTH AND SOUTHEAST ASIA
At 3:30 P.M. the angle between the hands of a clock is
Which of the following sentences is punctuated correctly? I want to go to the concert but I'm not sure if I will be able to make it to see the beginning. I want
Which way is the most casual way to greet a friend in Spanish
Write a description of an array of stickers using the product of 3 x 15.
Scientists and historians believe that the time from prehistory to the development of agriculture spans more than two million years. a. True b. False
how do you write 32,005,008 in two forms
What is 6476 divided by 12