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

Divide 88,800 By 100 Explain the shift of the digits and the change in the value of each digit
How can humans building a drainage system affect the water cycle?
were you aware of the wide range of effects diet could have on your health?
View picture to answer the two questions
simplify 3y^2-9y-120/y^2-10y+16
what is the main pourpose of the 10 admedment
To construct an equilateral triangle inscribed in a circle, two congruent circles are created such that the center of each circle is also a point on the other c
The Pharisees were especially noted for breaking the law. True or False?
what gas is most abundant greenhouse gas ? a) ozone b) chlorofluorocarbon c) carbon dioxide d) methane e) water vapor
Which organelle forms the surface of a cell, separating its contents from the outside world PLEASE HELP