What will be the output of the following C code? #include < stdio.h >
View QuestionIs initialisation mandatory for local static variables?
a) yes b) no c) Depends on the compiler d) Depends on the standard Answer: b
View QuestionFunctions have static qualifier for its declaration by default.
a) true b) false c) Depends on the compiler d) Depends on the standard Answer: b
View QuestionWhich of the following cannot be static in C?
a) Variables b) Functions c) Structures d) None of the mentioned Answer: d
View QuestionWhich of following is not accepted in C?
a) static a = 10; //static as b) static int func (int); //parameter as static c) static static ...
View Question
What will be the output of the following C code?
#include < stdio.h >
void main()
{
static int x;
if (x++ < 2)
main();
}
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 main()
{
static double x;
int x;
printf(“x is %d”, x);
}
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 >
static int x;
void main()
{
int x;
printf(“x is %d”, x);
}
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 main()
{
static int x;
printf(“x is %d”, x);
}
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 main()
{
m();
m();
}
void m()
{
static int x = 5;
x++;
printf(“%d”, x);
}
What will be the output of the following C code? #include < stdio.h >
View Question