Gate2020 cs Q35

0. Consider the following C program.

 Int main() {
  Int a[4][5]={{1, 2, 3, 4, 5},
  {6, 7, 8, 9, 10},
  {11, 12, 13, 14, 15},
  {16, 17, 18, 9, 20}};
  Printf(“%d\n”, *(*(a+**a+2)+3);
  Return(0);
  }
  The output program is ______ .

Note – Numerical Type question

  • Option : A
  • Explanation :
    Gate2020 cs
    base address of a = 1000
    “*” → has higher precedence the “+”
    *(*(a + ** a + 2) + 3)
    Gate2020 cs
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *