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

one egg carton holds 12 eggs .how many cartons  are you able  to fill with 60 eggs.help me please.
what place value would i put 805 tens in
7.20 7.2 greater equal or less
change 0.025 , 0.00003 , 0.00197 to scientific notation
Brandon owns nearly 2 times as many CDs ads Ingrid. Brandon owns 56 CDs. Write an equation and use it to estimate the number n of CDs Ingrid owns.
What would I put for the digit valuenumber 601,099 in the ten thousand place+
The GCF (Greatest Common Factor) of 45 and 75. Show your work too. Thanks for your help!
How to find the quotient for 10/5
What is 3.82 rounded to the nearest whole number?
is -n always sometime or never a positive number ?explain