Storage Class Questions and Answers
Practice ModeShowing 10 of 97 questions
Q51
What is the storage class of function PRINT() and find the output?
void main ( )
{
auto PRINT();
PRINT();
}
PRINT ( )
printf('printing");
}
Answer: Option B
Q52
Find the output
void main ( )
{
tuypedef int float;
float x=4;7;
printf('%d", sizeof(x));
}
Answer: Option C
Q53
Find the output
void main ( )
{
extern i;
printf('%d\n",i);
{
nt i=20;
printf ('%d\n', i);
}
}
Answer: Option D
Q54
To ver come the dangling pointer which of the following is used ?
Answer: Option C
Q55
Find the output
void main ( )
{
goto next;
{
int i=10;
static j=20;
next:printf('5d %d", i, j);
}
Answer: Option B
Q56
Find the output
int main ( )
{
static int i=5;
if (-i--)
{
main ( );
printf('5d",i);
}
return (0);
}
Answer: Option B
Q57
Find the output.
#define max 5typedef int arr1[max];
void main ( )
{
typedef char arr2{max];
arr1 list [2] ={0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
arr2 name [ ] ={"name"};
printf("%d %s", list [1], name);
}
Answer: Option A
Q58
Find the output
void main ( )
{
register int a=5;
register int *b=&a;
printf("%d %d", a, *b);
}
Answer: Option C
Q59
Storage class to be allocated to the object during
Answer: Option C
Q60
Pointer can't work with which storage class ?
Answer: Option B