C++20 sections · 1024 units
Open in Course

Quiz: Pointer Operations

Predict the output

Check Your Understanding

What does this code print? int x = 10; int* ptr = &x; *ptr = 20; cout << x;

  1. A.20
  2. B.Compiler error
  3. C.The address of x
  4. D.10
Start the roadmap to answer the quizzes and solve the challenges