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 / Sign Up
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
Priygop - Leading Professional Development Platform | Expert Courses & Interview Prep