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 are an equinox and a solstice ,and how many are there each year ?
What is a poem that uses neither regular rhythm nor rhyme called? a. a narrative poem b. a free-verse poem c. a sonnet d. an ode
A person forced to leave his or her country is an emigrant. an immigrant. an exile. a fugitive.
what is it called when the river in ancient egypt when the water rises up
If i threw a ball vertically at an initial speed of 34.5 m/s^2, how many seconds would it take to reach its maximum height
How do you do this ?
Tennis racket marked up 50% to $36.76
What form of government is Vietnam? Help plz A) democracy B) dictatorship C) oligarchy D) presidential
What is the x and y intercept of -x -6y=12
solve linear inequality in one varible ? 7x+12>5