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