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

if each quadrilateral below is a square, find the missing measures. please help :(
RELATIVPRONOMEN 1.Ich denke an meine Freundin Sarah, die im selben Haus wohnt, … ich bedingungslos vertraue, mit … ich über alles sprechen kann, … ich oft um Ra
That minimum coefficient of static friction between the tyres and the road that will allow the car that will round safely.
example of arrangement of molecules of compounds​
Work out 69% of 102.16m Give your answer rounded to two Decimal Place
What characteristics separate boycotts from quotas
help i dont know what to choose
help with these question
Any cookie jar 1/4 of the cookies or chocolate chip and 2/3 of the rest are peanut butter what fraction of all the cookies peanut butter
A recent article published in Berry Weekly reported a probability distribution for the different types of jelly that individuals prefer. Editors from a competit