Q201
Open question#include <stdio.h>
static int x = 5;
void main()
{
x = 9;
{
int x = 4;
}
printf("%d", x);
}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
11/12
Page
Pick an option on a question to see the right answer and solution.
Q201
Open question#include <stdio.h>
static int x = 5;
void main()
{
x = 9;
{
int x = 4;
}
printf("%d", x);
}Select an option to see the answer and solution.
Q202
Open question#include <stdio.h>
void m(int k)
{
printf("hi");
}
void m(double k)
{
printf("hello");
}
void main()
{
m(3);
}Select an option to see the answer and solution.
Q203
Open questionSelect an option to see the answer and solution.
Q204
Open question#include <stdio.h>
void f();
int main()
{
#define max 10
f();
return 0;
}
void f()
{
printf("%d\n", max * 10);
}Select an option to see the answer and solution.
Q205
Open questionSelect an option to see the answer and solution.
Q206
Open question#include <stdio.h>
int func()
{
return (double)(char)5.0;
}Select an option to see the answer and solution.
Q207
Open question#include <stdio.h>
void main()
{
static int x = 3;
x++;
if (x <= 5)
{
printf("hi");
main();
}
}Select an option to see the answer and solution.
Q208
Open question#include <stdio.h>
void main()
{
int x = 3;
{
x = 4;
printf("%d", x);
}
}Select an option to see the answer and solution.
Q209
Open questionSelect an option to see the answer and solution.
Q210
Open questionSelect an option to see the answer and solution.
Q211
Open question#include <stdio.h>
int b;
int main()
{
int c;
return 0;
}
int a;Select an option to see the answer and solution.
Q212
Open questionSelect an option to see the answer and solution.
Q213
Open question#include <stdio.h>
int main()
{
int i;
for (i = 0;i < 5; i++)
int a = i;
printf("%d", a);
}Select an option to see the answer and solution.
Q214
Open question#include <stdio.h>
void foo();
int main()
{
void foo(int);
foo();
return 0;
}
void foo()
{
printf("2 ");
}Select an option to see the answer and solution.
Q215
Open question#include <stdio.h>
int x = 5;
void main()
{
int x = 3;
printf("%d", x);
{
int x = 4;
}
printf("%d", x);
}Select an option to see the answer and solution.
Q216
Open question#include <stdio.h>
#define MIN 0
#if defined(MIN) - (!defined(MAX))
#define MAX 10
#endif
int main()
{
printf("%d %d\n", MAX, MIN);
return 0;
}Select an option to see the answer and solution.
Q217
Open questionSelect an option to see the answer and solution.
Q218
Open question#include <stdio.h>
void main()
{
static double x;
int x;
printf("x is %d", x);
}Select an option to see the answer and solution.
Q219
Open questionSelect an option to see the answer and solution.
Q220
Open questionSelect an option to see the answer and solution.