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

When 70,000 is written as 7.0 10^{n} what is the value of n ? Can you please explain with some details?
When 70,000 is written as 7.0 10^{n} what is the value of n ? Can you please explain with some details?
Rewrite the following linear equation in slope-intercept form. Write your answer with no spaces. y+2=4(x-3)
How many months is 0.75 of a year
Why did immigrants tend to group together in cities?
reduce 15 1/4 +1 1/2 +3/20 to lowest term.
Which decimal is equivalent to 13/20?
What are the three branches of government?
What is the value of 6P6?  A.1  B.36  C.720  D.46,656
A ball is thrown into the air with an upward velocity of 44 ft/s. Its height h in feet after t seconds is given by the function [tex]h=-16t ^{2} +44t+9[/tex]. W