91.7k views
1 vote
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.

User EZDsIt
by
8.5k points

1 Answer

3 votes

Answer:

The program to this question can be given as:

Program:

#include<stdio.h> //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

Step-by-step 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.

User Dbank
by
8.2k points