Ask Question
7 December, 03:34

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.

+5
Answers (1)
  1. 7 December, 05:50
    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?
Find 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 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