Programming Languages C Objective
Jan 02, 2013

int y[4] = {6, 7, 8, 9};
int *ptr = y + 2; printf("%d\n", ptr[ 1 ] );

what is the output of the statements.

Choose the correct answer:
A) 9
B) 8
C) 7
D) 6
Detailed Explanation

The output is 9; so the answer is a.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback