Skip to content

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

GateBrew
← GATE CSE 2017 Set 2
Questions

Q54

NAT2 marksEasy

Consider the following C program.

#include<stdio.h>
int main () {
    int m=10;
    int n, n1;
    n=++m;
    n1=m++;
    n--;
    --n1;
    n-=n1;
    printf("%d", n);
    return 0;
}

The output of the program is ______

Sign in to save attempts.

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