Pointers
This lesson contains approximately 30 minutes of video content.
Before we begin, a quick review!
Pointers
Important to note
Questions
Q1
QPointers, Q1
This question is ungraded.
As a declarative operator, * means:
Q2
QPointers, Q2
This question is ungraded.
When presenting in an expression, * means:
Questions 3-4
Questions 3-4
Questions 3-4 will reference the following code block:
int* pointer = nullptr;
int a = 4;
pointer = ____; /* you will fill-in this blank as a response to one of the questions. */
a += 1;
std::cout << *pointer << std::endl;
Q3
QPointers, Q3
This question is ungraded.
In the code snippet provided above, on line 3, what would you fill in the blank
(i.e., the ____) with so that pointer points to a?
Q4
QPointers, Q4
This question is ungraded.
In the code snippet provided above, on line 5, what will the expression *pointer
evaluate to? Select the best answer.