Storage Class Questions and Answers
Practice ModeShowing 10 of 97 questions
Q11
Which variables can't be used as function parameters ?
Answer: Option C
Q12
Find the output.
int x=5;
void main ( )
{
int i=1;
{
extern int x;
printf('%d", x);
}
Answer: Option C
Q13
Static storage class can be used as :
Answer: Option D
Q14
Static global variable have
Answer: Option A
Q15
What is the output?
int x=1;
void main ( )
{
printf('5d", x--);
}
Answer: Option B
Q16
Find the output.
int x;
void main ( )
{
extern int x=5;
printf (5d", x);
}
Answer: Option C
Q17
Why address of registervariable can't be found using '&" operator?
Answer: Option A
Q18
Static variable are useful in
Answer: Option D
Q19
Find the output if the value of x is given as 5
void main ( )
{
register int x;
scanf ('5d", &x;
printf('%d", x);
}
Answer: Option D
Q20
In a program if we declare both external and auto variables then the first priority will goes to which variable ?
Answer: Option C