What is the correct output of the following C program statements? int array[]={6, 7, 8, 9, 0, 1, 2, 4, 5, 6}, *p=array+5; printf("%d\n",p[1]);

What is the correct output of the following C program statements?

int array[]={6, 7, 8, 9, 0, 1, 2, 4, 5, 6}, *p=array+5;
printf("%d\n",p[1]);
  1. a) 1
  2. b) 2
  3. c) 3
  4. d) Compile Error

From the Rupali Bank Assistant Network Engineer 2021 – Written (CTI) exam, question 29 of 46.

More from this paper