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

Ecological succession is typically a _______ process through which a developing ecosystem becomes _______ stable.
I need help with this Algebra question
Forty-eight pounds of sand are used to fill 12 bags. Miranda uses the five-step problem-solving plan. After completing the Solve step, how many pounds of san
Jasmine is creating a presentation about animals that live in the forest. Which image would BEST support her ideas? A) a map showing how to get around in the fo
what is p(2) given p(n)=6-2|1 + n|
principal 1750 interest rate 2% for 20 years
When a substance dissolves in a liquid, it breaks down to the size of ___________. a.)atoms b.)elements c.)molecules d.)compoundsWhen a substance dissolves, it
What is the constant ratio formula
The best time for Americans to import French cheese is when they can
How many chemicals do cigarette have?