91. What will be the output of the following C code?
#include <stdio.h>
register int x;
void main()
{
printf("%d", x);
}
#include <stdio.h>
register int x;
void main()
{
printf("%d", x);
}
92. Functions can return structure in C?
93. What is the advantage of #define over const?
94. What is the default return type if it is not specified in function definition?
95. What will be the output of the following C code?
#include <stdio.h>
int main()
{
void foo();
void f()
{
foo();
}
f();
}
void foo()
{
printf("2 ");
}
#include <stdio.h>
int main()
{
void foo();
void f()
{
foo();
}
f();
}
void foo()
{
printf("2 ");
}
96. What will be the output of the following C code?
#include <stdio.h>
void main()
{
m();
printf("%d", x);
}
int x;
void m()
{
x = 4;
}
#include <stdio.h>
void main()
{
m();
printf("%d", x);
}
int x;
void m()
{
x = 4;
}
97. Functions in C are always . . . . . . . .
98. 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);
}
#include <stdio.h>
int main()
{
register static int i = 10;
i = 11;
printf("%d\n", i);
}
99. What will be the output of the following C code?
#include <stdio.h>
#include "printf"
void main()
{
printf("hello");
}
#include <stdio.h>
#include "printf"
void main()
{
printf("hello");
}
100. Can variable i be accessed by functions in another source file?
#include <stdio.h>
int i;
int main()
{
printf("%d\n", i);
}
#include <stdio.h>
int i;
int main()
{
printf("%d\n", i);
}
Read More Section(Function)
Each Section contains maximum 100 MCQs question on Function. To get more questions visit other sections.