a) true b) false c) Depends on the compiler d) Depends on the standard
View Question
What will be the output of the following C code?
#include < stdio.h >
int main()
{
register const int i = 10;
i = 11;
printf(“%d\n”, i);
}
What will be the output of the following C code? #include < stdio.h >
View Question
What will be the output of the following C code?
#include < stdio.h >
int main()
{
register auto int i = 10;
i = 11;
printf(“%d\n”, i);
}
What will be the output of the following C code? #include < stdio.h >
View Question
What will be the output of the following C code?
#include < stdio.h >
int main()
{
register static int i = 10;
i = 11;
printf(“%d\n”, i);
}
What will be the output of the following C code? #include < stdio.h >
View Questionregister keyword mandates compiler to place it in machine register.
a) true b) false c) Depends on the standard d) None of the mentioned Answer: b
View Question
What will be the output of the following C code?
#include < stdio.h >
int main()
{
register int i = 10;
int *p = &i;
*p = 11;
printf(“%d %d\n”, i, *p);
}
What will be the output of the following C code? #include < stdio.h >
View Question
What will be the output of the following C code?
#include < stdio.h >
void func();
int main()
{
static int b = 20;
func();
}
void func()
{
static int b;
printf(“%d”, b);
}
What will be the output of the following C code? #include < stdio.h >
View QuestionWhich of the following is true for the static variable?
a) It can be called from another function b) It exists even after the function ends c) It can ...
View QuestionWhat is the format identifier for “static a = 20.5;”?
a) %s b) %d c) %f d) Illegal declaration due to absence of data type Answer: b
View QuestionAssignment statements assigning value to local static variables are executed only once.
a) true b) false c) Depends on the code d) None of the mentioned Answer: b
View Question