Ask 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 argument to the function.

+4
Answers (1)
  1. 22 March, 16:38
    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 & 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