Ask Question

What does the following function return? double compute speed (double distance); A. a double B. distance C. an integer D. nothing

+5
Answers (1)
  1. 7 September, 07:06
    0
    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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What does the following function return? double compute speed (double distance); A. a double B. distance C. an integer D. nothing ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers