71. What will be the output of the following C code?
#include <stdio.h>
int main()
{
auto i = 10;
const auto int *p = &i;
printf("%d\n", i);
}
#include <stdio.h>
int main()
{
auto i = 10;
const auto int *p = &i;
printf("%d\n", i);
}
72. What will be the x in the following C code?
#include <stdio.h>
void main()
{
int x;
}
#include <stdio.h>
void main()
{
int x;
}
73. What linkage does automatic variables have?
74. What will be the output of the following C code?
#include <stdio.h>
int main()
{
printf("%d", d++);
}
int d = 10;
#include <stdio.h>
int main()
{
printf("%d", d++);
}
int d = 10;
75. What will be the output of the following C code?
#include <stdio.h>
int main()
{
void foo(), f();
f();
}
void foo()
{
printf("2 ");
}
void f()
{
printf("1 ");
foo();
}
#include <stdio.h>
int main()
{
void foo(), f();
f();
}
void foo()
{
printf("2 ");
}
void f()
{
printf("1 ");
foo();
}
76. Which of the following names for files not accepted?
77. If #include is used with file name in angular brackets.
78. What will be the output of the following C code?
#include <stdio.h>
void main()
{
m();
void m()
{
printf("hi");
}
}
#include <stdio.h>
void main()
{
m();
void m()
{
printf("hi");
}
}
79. What will be the output of the following C code?
#include <stdio.h>
int main()
{
void foo();
printf("1 ");
foo();
}
void foo()
{
printf("2 ");
}
#include <stdio.h>
int main()
{
void foo();
printf("1 ");
foo();
}
void foo()
{
printf("2 ");
}
80. What will be the output of the following C code?
#include <stdio.h>
static int x = 5;
void main()
{
int x = 9;
{
x = 4;
}
printf("%d", x);
}
#include <stdio.h>
static int x = 5;
void main()
{
int x = 9;
{
x = 4;
}
printf("%d", x);
}
Read More Section(Function)
Each Section contains maximum 100 MCQs question on Function. To get more questions visit other sections.