Storage Class Questions and Answers
Practice ModeShowing 10 of 97 questions
Q41
Find the output
void man ( )
{
har *p;
char (show( );
p=show ( );
printf('%c", *p;
}
char *show()
{
char *m;
m=(char *p) malloc(1);
*m='b';
++*m;
return m;
}
Answer: Option B
Q42
Find the output
void main ( )
{
char *p='CITE";
char *q;
q=(char *) malloc (strlen(p));
while (*q++);
printf("%s", q);
}
Answer: Option D
Q43
To access a semi-global variable
Answer: Option C
Q44
Find the output.
int i=4;
void main ( )
{
int i=1;
{
sttic int i=5;
}
printf('5d', i);
}
Answer: Option B
Q45
Which storage class allocates and deallocates memory without the knowledge of user?
Answer: Option A
Q46
Which storage class share memory into different frames of the function recursion ?
Answer: Option B
Q47
External variable can not be initialized, because
Answer: Option A
Q48
Which register holds base address of code segment ?
Answer: Option A
Q49
Find the output
void main ( )
{
int const * size=10;
printf('5d", ++size);
}
Answer: Option C
Q50
What are the allowed storage class in function prototype declaration ?
Answer: Option D