Skip to content

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

GateBrew
← GATE CSE 2026 Set 2
Questions

Q50

NAT2 marks

Consider the following ANSI-C program.

#include <stdio.h>
int main(){
    int *ptr, a, b, c;
    a=5; b=11; c=20;
    ptr=&a; *ptr=c; ptr=&c;
    a=*(&b); c=*ptr-a;
    printf("%d",c);
    return(0);
}

The output of this program is ____\_\_\_\_ . (answer in integer) Note: Assume that the program compiles and runs successfully.

Sign in to save attempts.

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