What is the output of the following code?

1.6 What is the output of the following code?
main()
{
int n[3] [3] = {2, 4, 3
6, 8, 5,
3, 5, 1};
int *ptr;
ptr=n;
printf(“%u”, n[2]);
printf(“%u”, ptr[2]);
printf(“%u”, * (ptr+2));
A) 4 8 5
B) 4 1 6 3 3
C) 3 5 1 4 8 5 2 6 3
D) None of the above

Leave a Reply