Storage Class Questions and Answers
Practice ModeShowing 10 of 97 questions
Q91
Which storage class can retain values in between system calls ?
Answer: Option B
Q92
The static storage class specifier can not be applied to
Answer: Option C
Q93
Find the output.
void main (register int argc)
{
static int y;
y=argc;
printf("%d",y);
}
Answer: Option B
Q94
Find the output
int main (void);
int main ( )
{
unsigned int static main =4;
int (*p) ( );
p=(int *) main ;
(*p) ( );
printf("%d", main++);
return 0;
}
Answer: Option C
Q95
Find the output
main ( )
{
static int a[5]={1, 2, 3, 4, 5};
static int b[5]={6, 7, 8, 9, 10};
int i;
for (i=0; i<10; i++)
printf("%d", a[i]);
}
Answer: Option B
Q96
Choose the correct one
a.c
a) static char x[4000];
void main ( )
{
}
b.c
b) void main ( )
{
auto char x[4000];
}
Answer: Option A
Q97
How many time the loop wil iterate ?
void main ( )
{
register char i=1;
while (i)
{
printf("%d", i);
i++;
}
}
Answer: Option B