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

A bookmark is shaped like a rectangle with a semicircle attached at both ends. The rectangle is 12 cm long and 4 cm wide. The diameter of each semicircle is the
plz help 15 points and best answer to the first answer!
describe what would be true about the rate of change in a situation that could be represented by a graphed line and an equation in the form y=mx + b
Please help ! One pound of shrimp costs $6.00. How much does 7/8 pound of shrimp cost?
The Triple Alliance was a loose agreement of cooperation among? a)Serbia, Germany, and Britian b) Italy, Serbia, and France c) Germany, Italy, and Russia d) Ger
why is 743 a prime number
a number equivalent to 63.24
What is a sentence for the word blacken
An analysis of an oxide of nitrogen with a molecular weight of 92.02 amu gave 69.57% oxygen and 30.43% nitrogen. What are the empirical and molecular formulas f
What changes to landforms can ice cause?