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.

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.

LANGUAGE: C++

CHALLENGE:

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.

SOLUTION:



zeroIt(&x);

Add comment