MCQ1 mark
In C runtime environment, which one of the following is stored in heap?
Single correct
GATE CSE previous year questions · Programming & Data Structures
You're practising the free 2026 questions. 24 more from 2011–2025 unlock with a free account.
Sign up freeSingle correct
#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?Single correct
#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.Numerical answer