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

The amount y (in grams) of the radioactive isotope chromium-51 remaining after t days is y=a(0.5)^t/28, where a is the initial amount (in grams). What percent o
5 dicided by 4 in a form of a decimal
Emily is running a lemonade stand. She expects to make $110 for the day, but ends up making 162% of that amount. How much money did Emily make that day?
Who is the audience in the poem the road not taken
The ratio of boys to girls in a school iş 3: 2. If there are 600 boys in the school, find the number of girls. ​
if buying rate and Selling rate of US dollar is RS 130.94 and Rs 131.54. Rajendra Bought some US dollar and sold them after the devaluation of Nepali money by 1
if the voltage of a circuit increases the temperature will_________
help me please i need You help now ​
It scraped on my raw nerves like sandpaper figurative language
How do solve this -16.29 ÷ 3.62?