Skip to main content
Priygop
Home
Courses
Practice
Coding Challenges
Sharpen your skills with real interview-style problems
Typing Practice
Boost your coding speed and accuracy
Interview Questions
Prepare for top company technical interviews
Certifications
Blog
Videos
Sign In
Home
Courses
Practice
Coding Challenges
Typing Practice
Interview Questions
Certifications
Blog
Videos
Sign In
Home
Challenges
Pointer Arithmetic
🔮 Output Prediction
C+ C++
Hard
âš¡
+35 XP
Pointer Arithmetic
What is printed?
💡
Use Hint
(-5 XP)
C++
int arr[] = {10, 20, 30, 40}; int* ptr = arr; ptr += 2; cout << *ptr;
🔮 What is the output?
A.
30
B.
20
C.
10
D.
40