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

I need a Amazon tribe name please! Need for Monday
which inequality is equivalent to 7x-2y> 8. A) y> 7/2x+8 b) y>-2/7x+8/7 c) y <7/2x-4 d) y <-2/7x-4/7 (whats a Inequality? )
how many books did Harriet beecher stowe write?
Which of the following is equivalent to 3a + 4b – (–6a – 3b) ? A. 16ab B. –3a + b C. –3a + 7b D. 9a + b E. 9a + 7b
How many midgets can sit in a clown car if the car can hold 4 clowns from door to door and 3 people from front seat to back seat. Two midgets fit across 1 clow
What is the product of (x+1) and (2x^2+3x-1)?
solve for x: 2x^2+4x-16+=0
Which substance will combine with oxygen gas to produce a greenhouse gas? a. Na b. S c. H₂ d. Ne e. C
Wages. JoAnn works in the publicity office at the state university. She is paid $10 an hour for the first 35 hours she works each week and $15 an hour for every
how many books did Harriet beecher stowe write?