201k views
5 votes
zeroIt is a function that takes one argument and returns no value. The function stores the value 0 back into the parameter. 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 .

User Danny
by
7.5k points

1 Answer

0 votes

Answer:

The statement to the following question is zerolt(x).

Explanation:

Here, zerolt is a method that takes one argument in the parameter and returns no values.

The method stores 0 value back in the parameter.

Set an integer type variable "x".

Then, initialize the value in an integer variable "x" to 0.

The following statement is written above.

User AndyWarren
by
7.6k points