C++20 sections · 1024 units
Open in CourseQuiz: Pointer Operations
Predict the output
Check Your Understanding
What does this code print? int x = 10; int* ptr = &x; *ptr = 20; cout << x;
- A.20
- B.Compiler error
- C.The address of x
- D.10
Predict the output
What does this code print? int x = 10; int* ptr = &x; *ptr = 20; cout << x;