Ask Question
20 September, 10:41

What does the following function return? void index_of_smallest (const double all, int startindex, int numberOfSlots); A. a double B, numberOflots C. an integer D. nothing

+5
Answers (1)
  1. 20 September, 13:00
    0
    nothing

    Explanation:

    Because the return type of the function is void. void means does not return any thing.

    The syntax of the function:

    type name (argument_1, argument_2, ...)

    {

    statement;

    }

    in the declaration the type define the return type of the function.

    it can be int, float, double, char, void etc.

    For example:

    int count (int index);

    the return type of above function is int. So, it return integer.

    similarly,

    void count (int index);

    it return type is void. So, it does not return any thing.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “What does the following function return? void index_of_smallest (const double all, int startindex, int numberOfSlots); A. a double B, ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers