71. Functions have static qualifier for its declaration by default.
72. Can we use a function as a parameter of another function? [Eg: void wow(int func())].
73. What will be the output of the following C code?
#include <stdio.h>
void main()
{
static int x;
if (x++ < 2)
main();
}
#include <stdio.h>
void main()
{
static int x;
if (x++ < 2)
main();
}
74. Assignment statements assigning value to local static variables are executed only once.
75. The #else directive is used for . . . . . . . .
76. 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 );
}
#include <stdio.h>
void foo(auto int i);
int main()
{
foo(10);
}
void foo(auto int i)
{
printf("%d\n", i );
}
77. Conditional inclusion can be used for . . . . . . . .
78. What will be the output of the following C code?
#include <stdio.h>
void main()
{
{
int x = 8;
}
printf("%d", x);
}
#include <stdio.h>
void main()
{
{
int x = 8;
}
printf("%d", x);
}
79. Comment on the output of the following C code.
#include <stdio.h>
#define var 20);
int main()
{
printf("%d\n", var
}
#include <stdio.h>
#define var 20);
int main()
{
printf("%d\n", var
}
80. What will be the sequence of allocation and deletion of variables in the following C code?
#include <stdio.h>
int main()
{
int a;
{
int b;
}
}
#include <stdio.h>
int main()
{
int a;
{
int b;
}
}
Read More Section(Function)
Each Section contains maximum 100 MCQs question on Function. To get more questions visit other sections.