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

How can we fix the affects the affects of acid rain
PLS HELP!!! 25 POINTSS DUE SOON!!! Many of the animals that live in the northernmost regions of the Northern Hemisphere have white fur. How does having white fu
What the capital of Washington?​
In y > x + 4, where can we find the solution set?
what is the slope of y=−5+4xy
Identify and state the function of the components of nervous tissue.
What is the area of a circle with a diameter of 18.2 cm?Use 3.14 for ∏ and round your final answer to the nearest hundredth. The area is ___ square cm.​
HELP!!! .....................
Compare/Contrast 2 of the 1920s presidents.
PLEASE HELP ME WITH MY SPANISH