Q121
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
7/12
Page
Pick an option on a question to see the right answer and solution.
Q121
Open questionSelect an option to see the answer and solution.
Q122
Open question#define C_IO_HEADER <stdio.h>
#include C_IO_HEADERSelect an option to see the answer and solution.
Q123
Open question#include <stdio.h>
int *p;
int main()
{
int i = 0;
p = &i;
return 0;
}Select an option to see the answer and solution.
Q124
Open question#include <stdio.h>
void main()
{
register int x = 0;
if (x < 2)
{
x++;
main();
}
}Select an option to see the answer and solution.
Q125
Open questionSelect an option to see the answer and solution.
Q126
Open question#include <stdio.h>
void f();
int main()
{
#define foo(x, y) x / y + x
f();
}
void f()
{
printf("%d\n", foo(-3, 3));
}Select an option to see the answer and solution.
Q127
Open question#include <stdio.h>
void main()
{
register int x;
printf("%d", x);
}Select an option to see the answer and solution.
Q128
Open questionSelect an option to see the answer and solution.
Q129
Open questionSelect an option to see the answer and solution.
Q130
Open question#include <stdio.h>
double i;
int main()
{
printf("%g\n",i);
return 0;
}Select an option to see the answer and solution.
Q131
Open question#include <stdio.h> //Program 1
int main()
{
int a;
int b;
int c;
}
#include <stdio.h> //Program 2
int main()
{
int a;
{
int b;
}
{
int c;
}
}Select an option to see the answer and solution.
Q132
Open question#include <stdio.h>
void main()
{
static int x;
printf("x is %d", x);
}Select an option to see the answer and solution.
Q133
Open questionSelect an option to see the answer and solution.
Q134
Open question#include (stdio.h)
void main()
{
printf("hello");
}Select an option to see the answer and solution.
Q135
Open question#include <stdio.h>
#define foo(m, n) m ## n
void myfunc();
int main()
{
myfunc();
}
void myfunc()
{
printf("%d\n", foo(2, 3));
}Select an option to see the answer and solution.
Q136
Open questionSelect an option to see the answer and solution.
Q137
Open question#include <stdio.h>
void main()
{
m();
m();
}
void m()
{
static int x = 5;
x++;
printf("%d", x);
}Select an option to see the answer and solution.
Q138
Open questionSelect an option to see the answer and solution.
Q139
Open question#include <stdio.h>
#define MIN 0
#ifdef MIN
#define MAX 10
#endif
int main()
{
printf("%d %d\n", MAX, MIN);
return 0;
}Select an option to see the answer and solution.
Q140
Open questionSelect an option to see the answer and solution.