Q141
Open question#include <stdio.h>
#define foo(m, n) " m ## n "
int main()
{
printf("%s\n", foo(k, l));
}Select an option to see the answer and solution.
Practice every MCQ with options. Use Show answers when you want the correct option and solution.
223
Questions
8/12
Page
Pick an option on a question to see the right answer and solution.
Q141
Open question#include <stdio.h>
#define foo(m, n) " m ## n "
int main()
{
printf("%s\n", foo(k, l));
}Select an option to see the answer and solution.
Q142
Open question#include <stdio.h>
int main()
{
int one = 1, two = 2;
#ifdef next
one = 2;
two = 1;
#endif
printf("%d, %d", one, two);
}Select an option to see the answer and solution.
Q143
Open questionSelect an option to see the answer and solution.
Q144
Open question#include <stdio.h>
void m()
{
printf("hi");
}
void main()
{
m();
}Select an option to see the answer and solution.
Q145
Open question#include <stdio.h>
void func();
int main()
{
static int b = 20;
func();
}
void func()
{
static int b;
printf("%d", b);
}Select an option to see the answer and solution.
Q146
Open question#include <stdio.h>
int *i;
int main()
{
if (i == 0)
printf("true\n");
return 0;
}Select an option to see the answer and solution.
Q147
Open question#include <stdio.h>
void main()
{
#define max 37;
printf("%d", max);
}Select an option to see the answer and solution.
Q148
Open question#include <stdio.h>
#define Cprog
int main()
{
int a = 2;
#ifdef Cprog
a = 1;
printf("%d", Cprog);
}Select an option to see the answer and solution.
Q149
Open questionSelect an option to see the answer and solution.
Q150
Open question#include <stdio.h>
int *i;
int main()
{
if (i == NULL)
printf("true\n");
return 0;
}Select an option to see the answer and solution.
Q151
Open question-------file test.c-------
#include <stdio.h>
#include ""test.h""
int main()
{
i = 10;
printf(""%d "", i);
foo();
}
-----file test1.c------
#include <stdio.h>
#include ""test.h""
int foo()
{
printf(""%d\n"", i);
}
-----file test.h-----
#include <stdio.h>
#include <stdlib.h>
static int i;Select an option to see the answer and solution.
Q152
Open questionSelect an option to see the answer and solution.
Q153
Open question#include <stdio.h>
int main()
{
extern ary1[];
printf("%d\n", ary1[0]);
}Select an option to see the answer and solution.
Q154
Open questionSelect an option to see the answer and solution.
Q155
Open questionSelect an option to see the answer and solution.
Q156
Open questionSelect an option to see the answer and solution.
Q157
Open questionSelect an option to see the answer and solution.
Q158
Open questionSelect an option to see the answer and solution.
Q159
Open question#include <stdio.h>
#include "test.h"
#include "test.h"
int main()
{
//some code
}Select an option to see the answer and solution.
Q160
Open questionSelect an option to see the answer and solution.