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

(30pts} Find the missing measurements.
i peeled 21 oranges in 28 minutes how long would it take me to peel 15 oranges
Find the area. Simplify your answer. 2x–9 2x+6
What is one reason president Abraham Lincoln included these statements in this address
Two random samples of 25 people were asked how many 12-ounce cans of soda they consume each week. The first sample contained both males and females, aged 12-19.
Which statement from the article best expresses the author’s claim about chess
ue el escuela (minutos) 20 201 201 202 21 21호 21호 21호 22 B. Lewis dijo que la diferencia entre la vez que llegó más rápido y la vez que más tardó fue 2 minutos.
The income capitalized to determine value is A. annual net income B. annual gross income C. monthly net income D. monthly gross income
) Multiply. Write your answer in scientific notation. 5• (2 × 10^2)
integrate the question in the attached image