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

Whats the overall goal of good time management
The standardized IQ test is described as a normal distribution with 100 as the mean score and a 15-point standard deviation. 2. What is the Z score for a score
In regards to ADHD diagnoses, what damage could chromosome bias - believing that those with Y chromosomes are behaviorally deficient - have on both XX and XY ch
Which number line represents the solution set for the inequality-1/2x>4
Write at least one paragraph, describe how what happened in Nazi Germany affects life in New Jersey and New York present-day. Provide specific examples
Explain how drooping of leaves is an advantage to plants
what volume will 10g of carbon dioxide occupy at STP
inequality 3x -6 ≤ -3
Which number line represents the solution set for the inequality-1/2x>4
Hay fed to llamas should be at least 18% protein.A. True B. False