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

What codes for proteins? amino acids O RNA O polypeptides O DNA O ​
How computer is important in our life​
Help me with this please #17
write any four social rules of your society.​
WILL BE AWARDED 100 points En tu opinión, ¿cuándo es una persona un “adulto?” ¿Cuáles son unas características que un adulto tiene que un joven no tiene? Relata
PLS HELP ME Given that the universal set. U = {X : 30 ≤ X ≤ 40. X is an even number}. P = {X : X is a multiple of 4} and Q = {X : X is a number such that the su
Individual claim sizes may be modeled by a uniform distribution function on the interval [$1000, $5000]. Eighty claims are examined. Assume claims are independe
True or False. Section 1981 provides similar relief to an aggrieved employee as Title VII.
help!!! i need asapp
How can the nation be respected? ​