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 did the Declaration of Independence justify colonial independence?
Yo te anoche. O A. llamo O B. llamaste O c. llamé O D . llamaron
In what year did slavery officially end in the western hemisphere
Do you believe kinship relationships still have significance in contemporary America?
(CO 3) The weights of ice cream cartons are normally distributed with a mean weight of 20.1 ounces and a standard deviation of 0.3 ounces. You randomly select 2
1 Point Which of the following is the best definition of a system? O A. A group of objects and materials that are interrelated O B. Anything that takes up space
what is the smaller angle formed by 4:15 on the clock (10 points)
En una ciudad se selecciono una muestra aleatoria de 500 alumnos
Australia’s capital city
Please show me steps to find 1/3 + m = 13/15