What is the output of the following C program?
c
- A4, 8
- B1, 5
- C8, 5
- D1, 8
Programming in CPointers, Multi-Dimensional Arrays, StructuresMCQ2 marks · −2/3 if wrongMedium
1#include <stdio.h>
2int main() {
3 double a[2]={20.0,25.0},*p, *q;
4 p = a;
5 q = p + 1;
6 printf ("%d, %d",(int)(q - p),(int)(*q - *p));
7 return 0;
8}
9A GATE question every morning
One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.