Skip to main content
PProfileMatch

C++ · C++ Pointers and References Explained

Question 1 of 5

What does this pointer code print?

int balance = 1000;
int* ptr = &balance;
*ptr = 1500;
cout << balance;

Tip: press 1-4 to answer, Enter to continue. Finish the quiz to bank your XP.