The GATE Grind

GATE Programming and Data Structures: Arrays – Previous Year Questions

2 GATE previous year questions on Arrays (Programming and Data Structures, Computer Science) with answers and explanations, from every paper.

  1. GATE 2016 CS Q44 (2 marks, Multiple choice) – The following function computes the maximum value contained in an integer array `p[]` of size n (n 1). The missing loop condition is
  2. GATE 2019 CS Q34 (1 mark, Numerical answer) – Consider the following C program: The number that will be displayed on execution of the program is .