What will be the output of the following C code? #include < stdio.h >
View QuestionWhat linkage does automatic variables have?
a) Internal linkage b) External linkage c) No linkage d) None of the mentioned Answer: c
View QuestionAutomatic variables are stored in ________
a) stack b) data segment c) register d) heap Answer: a
View Question
What will be the output of the following C code?
#include < stdio.h >
void foo(auto int i);
int main()
{
foo(10);
}
void foo(auto int i)
{
printf(“%d\n”, i );
}
What will be the output of the following C code? #include < stdio.h >
View QuestionIf storage class is not specified for a local variable, then the default class will be auto.
a) true b) false c) Depends on the standard d) None of the mentioned Answer: a
View QuestionWhich of the following is a storage specifier?
a) enum b) union c) auto d) volatile Answer: c
View QuestionAutomatic variables are allocated space in the form of a __________
a) stack b) queue c) priority queue d) random Answer: a
View QuestionWhat is the scope of an automatic variable?
a) Within the block it appears b) Within the blocks of the block it appears c) Until the end ...
View Question
What will be the output of the following C code?
#include < stdio.h >
void main()
{
register int x = 5;
m();
printf(“x is %d”, x);
}
void m()
{
x++;
}
What will be the output of the following C code? #include < stdio.h >
View QuestionWhich among the following is wrong for “register int a;”?
a) Compiler generally ignores the request b) You cannot take the address of this variable c) Access time ...
View Question