Q101
Open questionSelect 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
6/12
Page
Pick an option on a question to see the right answer and solution.
Q101
Open questionSelect an option to see the answer and solution.
Q102
Open question#include <stdio.h>
#define COLD
int main()
{
#ifdef COLD
printf("COLD\t");
#undef COLD
#endif
#ifdef COLD
printf("HOT\t");
#endif
}Select an option to see the answer and solution.
Q103
Open question#include <stdio.h>
int *m()
{
int *p = 5;
return p;
}
void main()
{
int *k = m();
printf("%d", k);
}Select an option to see the answer and solution.
Q104
Open questionSelect an option to see the answer and solution.
Q105
Open question#include <stdio.h>
#define foo(x, y) x / y + x
int main()
{
int i = -6, j = 3;
printf("%d\n",foo(i + j, 3));
return 0;
}Select an option to see the answer and solution.
Q106
Open question#include <stdio.h>
int m()
{
printf("hello");
}
void main()
{
int k = m();
printf("%d", k);
}Select an option to see the answer and solution.
Q107
Open question#include <stdio.h>
int main()
{
register auto int i = 10;
i = 11;
printf("%d\n", i);
}Select an option to see the answer and solution.
Q108
Open question#include <stdio.h>
void main()
{
m();
}
void m()
{
printf("hi");
m();
}Select an option to see the answer and solution.
Q109
Open question#include <stdio.h>
void foo();
int main()
{
void foo(int);
foo(1);
return 0;
}
void foo(int i)
{
printf("2 ");
}Select an option to see the answer and solution.
Q110
Open question#include <stdio.h>
int func (int a)
{
int b;
return b;
}
int main()
{
int c;
func (c);
}
int d;Select an option to see the answer and solution.
Q111
Open questionSelect an option to see the answer and solution.
Q112
Open questionSelect an option to see the answer and solution.
Q113
Open question#include <stdio.h>
void main()
{
#define max 37
printf("%d", max);
}Select an option to see the answer and solution.
Q114
Open questionSelect an option to see the answer and solution.
Q115
Open questionSelect an option to see the answer and solution.
Q116
Open question#include <stdio.h>
#define MIN 0
#if MIN
#define MAX 10
#endif
int main()
{
printf("%d %d\n", MAX, MIN);
return 0;
}Select an option to see the answer and solution.
Q117
Open questionSelect an option to see the answer and solution.
Q118
Open questionSelect an option to see the answer and solution.
Q119
Open questionSelect an option to see the answer and solution.
Q120
Open questionSelect an option to see the answer and solution.