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

Levi buys a one-pint bottle of juice for $1.76. What is the unit rate of the juice per fluid qunce
What happens when blood goes back to pulmonary vein.
Which term best completes the title of the diagram? Colonization in the Americas Sent large numbers of settlers Set up permanent farming communities Mostly unin
Pls help this due very soon pls really need help
i need this please i help
Nia found a fraction that is equivalent to 3_/8. Is Nia’s fraction work, shown below, correct? Explain. 3 × 4/8 × 3= 12/24
How many senators needed to confirm supreme court justice.
A searchlight rotates through one complete revolution every 36 seconds. How long does it take the light to rotate through 90°?
How is the digestive system similar to the muscular system?.
examine examples of personification in the ballad "The owl and the Cat," How is personification used in the ballad?