GATEverse Practice, past papers & mock tests
GATE 2025 · CS2 - Afternoon
Programming & Data StructuresProgramminghardNAT2 marks
c
#include <stdio.h>
int main(){
  int a;
  int arr[5] = {30,50,10};
  int *ptr;
  ptr = &arr[0] + 1;
  a = *ptr;
  (*ptr)++;
  ptr++;
  printf("%d", a + (*ptr) + arr[1]);
  return 0;
}
The output of the above program is ___________. (Answer in integer)
Save your progress

Related Programming & Data Structures PYQs