Ask Question
26 August, 01:05

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

+2
Answers (1)
  1. 26 August, 02:18
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers