Q. What is printed when the sample code is executed?
Code:
int y[4] = {6, 7, 8, 9};
int *ptr = y + 2; printf(“%dn”, ptr[ 1 ] );
β
Correct Answer: (D)
9
int y[4] = {6, 7, 8, 9};
int *ptr = y + 2; printf(“%dn”, ptr[ 1 ] );
You must be Logged in to update hint/solution