Ask Question
15 November, 18:58

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.

+5
Answers (1)
  1. 15 November, 19:28
    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?
Find 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 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