allb5073 allb5073
  • 04-07-2019
  • Computers and Technology
contestada

What does the following function return? double compute speed(double distance); A. a double B. distance C. an integer D. nothing

Respuesta :

PhantomWisdom PhantomWisdom
  • 11-07-2019

Answer:

A. a double

Explanation:

The syntax of the function is:

type name( argument_1, argument_1,...... )

{  

    statement;

}

In the above syntax "type" define the return type of the function.

for example:

int count( int n);

so, it return the integer. Because the return type is 'int'.

In the question,

double compute speed(double distance);

Here, the return type is double. So, it return double.

Answer Link

Otras preguntas

Please help please please please
(answer it or get reported) Solve it w the steps ty​
What are the solutions to the equation x² + 16x + 14 = 0?
PLEASE PLEASE HELP I NEED TO ACE THIS angle c = ___ degrees
what are some advantages of society​
A company rents bikes. The price, p, in dollars, to rent a bike for h hours can be found using the formula p (h)= 14 + 3h. What is the price to rent a bike for
Help please. Geometry.
What is the formula for surface area? Giving brainliest to the correct answer
What is the value of this expression? 27+4×(8−4) Enter your answer in the box.
to make lemonade you used 1 quart of water 1 pint of lemon juice and 9 oz of your secret ingredient honey how much lemonade did you make in pints, cups, and oun