zeroIt is a function that takes one argument and returns no value. The argument is a pointer to int. The function stores the value 0 back into the variable pointed to by the argument. x is an int variable that has been declared.
Write a statement that sets the value stored in x to zero by invoking the function zeroIt.

Respuesta :

Answer:

zeroIt(&x);

Explanation:

The statement that sets the value stored in x to zero by invoking the function zerolt is given below

zeroIt(&x);

The zeroIt function is also given below for better understanding.

void zeroIt(int *x) {

   *x = 0;

}

As seen, the function takes an argument with integer variable type, which is a pointer, denoted by the asterisk symbol (*x).

The ampersan sign (&x) is used to access the variable whose value can then be stored.