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

Please help....thank you
is y=5 a linear function.
PLEASE HELP Describe the 3 ways plant seeds are dispered by other organisms. *
What is the slope of the line through the points (-2, -1) and (4, 3)? Group of answer choices 2/3 3/2 5/2 2/5
HELP ILL GIVE BRAINLIEST I NEED IT ASAP I NEED THESE 2 QUESTIONS
how to graph y=-8/3x+9
How did Richard get enough money to go north in black boy by Richard wright
Answer question 9 threw 20 for ALL my points (will mark brainlist)
Perry and Blake are having a discussion about the proper method of returning to a recovery heart rate. What is the statement that best reflects correct exerci
A chocolate maker melts three blocks of chocolate weighing 5.4 ounces, 6.1 ounces, and 5.7 ounces. If each truffle takes 0.4 ounces of chocolate, how many truff