Question

Consider the following code snippet. What is the output of the program?  #include < stdio.h > int main ( ) {     int arr[5] = {1, 2, 3, 4, 5};     int *ptr = arr;     ptr + = 2;     printf("%d", *ptr);     return 0; }

A 1
B 2
C 3
D 4
E 5
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)