Skip to content

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

GateBrew
← GATE CSE 2026 Set 2
Questions

Q9

MCQ1 mark, −0.33

Consider the following three ANSI-C programs, P1, P2,\text{P1, P2,} and P3\text{P3}. P1:

#include <stdio.h>
int a=5;
int main(){
    int a=7;
    return(0);
}

P2:

#include <stdio.h>
int main(){
    int a=5;
    int a=7;
    return(0);
}

P3:

#include <stdio.h>
int main(){
    int a=5;
    float a=7;
    return(0);
}

Which one of the following statements is true?

Sign in to save attempts.

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