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

What is an equation for the line through (11,-21) with undefined slope​
Which of the following is a decomposition reaction? reactant plus reactant yields product reaciant minus reactant yields product reactant yields product plus pr
Given sin(u)= -7/25 and cos(v) = -4/5, what is the exact value of cos(u-v) if both angles are in quadrant 3
log, 2z = log, (6z + 10)
URGENT PLEASE HELP ME :)) x
please help me if you know spanish well!
A solution with a pH of 9 would be acidic. true or false
Question on the attachment
What is the y-intercept of the line?
A scientist quantifies the replication error rate during DNA replication. It is discovered that the error rate is greater in the lagging strand when compared to