Storage Class Questions and Answers
Practice ModeShowing 10 of 97 questions
Q31
Find the output
main ( )
{
show ( );
show ( );
}
int show ( )
{
static int a=5;
a++;
printf("5d", a);
}
Answer: Option D
Q32
Which of the following storage class creates a block scoping ?
Answer: Option A
Q33
Find the output.
void main ( )
{
int x;
#include<stdio.h>
x=printf("clrscr ( )");
printf('5d", x);
}
Answer: Option A
Q34
Writing static to a global variable means
Answer: Option A
Q35
Which of the following is not decided by storage class ?
Answer: Option C
Q36
The storage class which has no storage, life, initial value, scope and linkage is
Answer: Option D
Q37
The storage class which creates new name of the data type
Answer: Option D
Q38
Find the output
main ( )
{
show ( );
show ( );
}
int show ( )
{
extern int a;
a++;
printf('%d", a);
}
int a=5;
}
Answer: Option D
Q39
Find the output
int a=20;
void main ()
{
int a=5;
{
int a=10;
}
printf("5d", a);
}
Answer: Option B
Q40
Which of the storage class allocates memory in run time ?
Answer: Option A