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

the level of water in a measuring cylinder rose to 90cm³ mark when a piece of stone whose mass is 10 g was dropped in the measuring cylinder. the initial volume
definition Mediterranean Basin​
Please help! How much is 840 miles in 3 & 1/2 hours?
PLEASE HELP! PREPARING FOR EXAMMMM! ​
write the equation in fully simplified slope intercept form​
Which category of people earns the most? A. Hispanic females B. White females C. Hispanic males D. black males
A coin is tossed 50 times, and the number of times heads comes up is counted. Which of the following statements about the distributions of counts and proportion
How I can answer this question, NO LINKS, if you answer correctly I will give u brainliest!
A boy starts the week with 3kg of rice, every day he cooks 0.6kg. How much rice will he have left after 4 days?
electrons of the outermost energy level.​