Ask Question
2 January, 06:52

Write the code to call a function whose name is send_number. There is one argument for this function, which is an int. Send 5 as an argument to the function.

+2
Answers (1)
  1. 2 January, 08:04
    0
    program to this question can be defined as follows:

    Program:

    #include / /defining header file

    using namespace std;

    void send_number (int x) / /defining method send_number

    {

    cout<
    }

    int main () / /defining main method

    {

    send_number (5); / /calling a method

    return 0;

    }

    Output:

    5

    Explanation:

    In the given C+ + language program, firstly the header file is defined, in the next step, the method "send_number" is defined, in which an integer variable "a"passed as parameter, in which the print method is used, that prints its value. In the main method, the method "send_number" is called, in which an integer value that is 5 is passed.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write the code to call a function whose name is send_number. There is one argument for this function, which is an int. Send 5 as an ...” 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