Assume that strikeCounter has already been declared to be a “pointer to int “. Assume further that strikeCounter has been initialized — its value is the address of some int variable. Write a statement that adds 22 to the value of the variable that strikeCounter is pointing to.

Assume that strikeCounter has already been declared to be a “pointer to int “. Assume further that strikeCounter has been initialized — its value is the address of some int variable. Write a statement that adds 22 to the value of the variable that strikeCounter is pointing to.

LANGUAGE: C++

CHALLENGE:

Assume that strikeCounter has already been declared to be a “pointer to int “. Assume further that strikeCounter has been initialized — its value is the address of some int variable. Write a statement that adds 22 to the value of the variable that strikeCounter is pointing to.

SOLUTION:



*strikeCounter+=22;

Add comment