GATEverse Practice, past papers & mock tests
GATE 2024 · CS2 - Afternoon
Programming & Data StructuresProgramminghardMCQ2 marks
What is the output of the following C program?
c
#include <stdio.h>
int main() {
  double a[2]={20.0, 25.0}, *p, *q;
  p = a;
  q = p + 1;
  printf("%d,%d", (int)(q - p), (int)(*q - *p));
  return 0;}
Save your progress

Related Programming & Data Structures PYQs