Ask Question
2 January, 04:46

Assume that print_error_description is a function that expects one int parameter and returns no value. Write a statement that invokes the function print_error_description, passing it the value 14.

+4
Answers (1)
  1. 2 January, 06:25
    0
    The program to this question can be given as:

    Program:

    #include / /include header file.

    void print_error_description (int x) / /function definition

    { / /body of the function

    printf ("The value of the parameter is = %d", x); / /print value.

    }

    int main () / /main method

    {

    print_error_description (14); / /calling a function

    return 0;

    }

    Output:

    The value of the parameter is = 14

    Explanation:

    According to the question we define a function that is "print_error_description () ". In this function we pass an integer element that is x. In this function we use void as a return type because this return type does not return any value. In the main method we call the function and pass the value that is 14.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Assume that print_error_description is a function that expects one int parameter and returns no value. Write a statement that invokes the ...” 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