81. What will be the output of the following C code?
#include <stdio.h>
enum m{JAN, FEB, MAR};
enum m foo();
int main()
{
enum m i = foo();
printf("%d\n", i);
}
int foo()
{
return JAN;
}
#include <stdio.h>
enum m{JAN, FEB, MAR};
enum m foo();
int main()
{
enum m i = foo();
printf("%d\n", i);
}
int foo()
{
return JAN;
}
82. C preprocessor is conceptually the first step during compilation.
83. 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);
}
#include <stdio.h>
int main()
{
register const int i = 10;
i = 11;
printf("%d\n", i);
}
84. What will be the output of the following C code?
#include <stdio.h>
#define foo(m, n) m * n = 10
int main()
{
printf("in main\n");
}
#include <stdio.h>
#define foo(m, n) m * n = 10
int main()
{
printf("in main\n");
}
85. What will be the output of the following C code?
#include <stdio.h>
#define MIN 0);
#ifdef MIN
#define MAX 10
#endif
int main()
{
printf("%d %d\n", MAX, MIN
return 0;
}
#include <stdio.h>
#define MIN 0);
#ifdef MIN
#define MAX 10
#endif
int main()
{
printf("%d %d\n", MAX, MIN
return 0;
}
86. Which among the following is wrong for "register int a;"?
87. What will be the output of the following C code?
#include <stdio.h>
void main()
{
#define max 45
max = 32;
printf("%d", max);
}
#include <stdio.h>
void main()
{
#define max 45
max = 32;
printf("%d", max);
}
88. Array sizes are optional during array declaration by using . . . . . . . . keyword.
89. What will be the output of the following C code?
#include <stdio.h>
int i;
int main()
{
extern int i;
if (i == 0)
printf("scope rules\n");
}
#include <stdio.h>
int i;
int main()
{
extern int i;
if (i == 0)
printf("scope rules\n");
}
90. How is search done in #include and #include"somelibrary.h" normally or conventionally?
Read More Section(Function)
Each Section contains maximum 100 MCQs question on Function. To get more questions visit other sections.