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 assigns the value 27 to 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 assigns the value 27 to 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 assigns the value 27 to the variable that strikeCounter is pointing to.

SOLUTION:



*strikeCounter=27;

Add comment