Storage Class Questions and Answers
Practice ModeShowing 10 of 97 questions
Q21
Find the output
void main ( )
{
int i=3;
while (i<5)
{
static int j=2;
printf ('5d", j++);
i++;
}
}
Answer: Option C
Q22
Find the incorrect one for 'typedef' storage class
Answer: Option D
Q23
In which of the storage class, initialization is done only once ?
Answer: Option A
Q24
Which of the following is used to call a C module in C++.
Answer: Option A
Q25
Find the output
void main ( )
{
int i;
static int j=0;
for (i=1; i<5;i++)
call (j);
}
call (int j)
{
j++;
printf (%d", j);
}
Answer: Option B
Q26
Which storage class variable is best suited for loop counter ?
Answer: Option C
Q27
A variable having bloc scope is known as
Answer: Option A
Q28
Which of the following storage class creates a file scoping ?
Answer: Option C
Q29
If the CPU fails to keep the variable in CPU register, in that case the variables are assumed to be
Answer: Option A
Q30
Which of the following storage class creates a program scoping ?
Answer: Option D