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 an expression whose value is four (4) times 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 an expression whose value is four (4) times the value of the variable that strikeCounter is pointing to.
SOLUTION:
*strikeCounter*4