Multiple choice

A pointer enables us to access a variable that is defined

  1. inside the function

  2. outside the function

  3. within the function

  4. none of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Pointers allow functions to modify variables defined outside their local scope by passing the memory address of those variables.