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(6,2) and B(1,-4) what is the actual length of AB to the nearest tenth
Which tradtion common among african peoples from them to accept christianity and islam?
you roll 2 dice. how likely is it that the 2 numbers will add up to 12 or less?
what does Procedural Essay Draft mean
My Question is 3x+ (-2+4x). x=5
A triangle has the coordinates (7, 6), (6, 3), and (8, 3) at its vertices. The transformed triangle has the coordinates (6, −7), (3, −6), and (3, −8) at its v
Describe the process of Filtration in the Nephron
In what way is the European Union similar to a single, independent nation? 1.It operates its own industries. 2.It has territorial borders. 3.It has its own bill
Fill in the blanks: At the outbreak of the Revolutionary War, America was ______. The Constitutional Convention was called to ______ in the hopes of ______. The
find the quotient 4/5 ÷3