Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2024 Set 2
Questions

Q26

MCQ2 marks, −0.67Programming

What is the output of the following C\text{C} program?

#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;}
Sign in to save attempts.

Solutions and discussion are hidden while you attempt this question. They open once you check or show the answer.