Q221
Open question#include <stdio.h>
void main()
{
float x = 0.1;
printf("%d, ", x);
printf("%f", 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.
303
Questions
12/16
Page
Pick an option on a question to see the right answer and solution.
Q221
Open question#include <stdio.h>
void main()
{
float x = 0.1;
printf("%d, ", x);
printf("%f", x);
}Select an option to see the answer and solution.
Q222
Open question#include <stdio.h>
void main()
{
int x = 4, y, z;
y = --x;
z = x--;
printf("%d%d%d", x, y, z);
}Select an option to see the answer and solution.
Q223
Open question#include <stdio.h>
int main()
{
int x = 1, y = 0, z = 3;
x > y ? printf("%d", z) : return z;
}Select an option to see the answer and solution.
Q224
Open question#include <stdio.h>
int main()
{
int i, n, a = 4;
scanf("%d", &n);
for (i = 0; i < n; i++)
a = a * 2;
}Select an option to see the answer and solution.
Q225
Open question#include <stdio.h>
int x = 0;
int f()
{
if (x == 0)
return x + 1;
else
return x - 1;
}
int g()
{
return x++;
}
int main()
{
int i = (f() + g()) || g();
int j = g() || (f() + g());
}Select an option to see the answer and solution.
Q226
Open question#include <stdio.h>
int main()
{
int x = 2, y = 0;
int z = (y++) ? 2 : y == 1 && x;
printf("%d\n", z);
return 0;
}Select an option to see the answer and solution.
Q227
Open question#include <stdio.h>
void main()
{
char a = 'a';
int x = (a % 10)++;
printf("%d\n", x);
}Select an option to see the answer and solution.
Q228
Open question#include <stdio.h>
void main()
{
1 < 2 ? return 1 : return 2;
}Select an option to see the answer and solution.
Q229
Open question#include <stdio.h>
int main()
{
int x = 3; //, y = 2;
const int *p = &x;
*p++;
printf("%d\n", *p);
}Select an option to see the answer and solution.
Q230
Open question#include <stdio.h>
void main()
{
int a = 2 + 3 - 4 + 8 - 5 % 4;
printf("%d\n", a);
}Select an option to see the answer and solution.
Q231
Open questionSelect an option to see the answer and solution.
Q232
Open question#include <stdio.h>
void main()
{
int k = 0;
double b = k++ + ++k + k--;
printf("%d", k);
}Select an option to see the answer and solution.
Q233
Open question#include <stdio.h>
void main()
{
int k = 8;
int m = 7;
k < m ? k = k + 1 : m = m + 1;
printf("%d", k);
}Select an option to see the answer and solution.
Q234
Open questionSelect an option to see the answer and solution.
Q235
Open question#include <stdio.h>
void main()
{
int a = 3;
int b = ++a + a++ + --a;
printf("Value of b is %d", b);
}Select an option to see the answer and solution.
Q236
Open question#include <stdio.h>
int main()
{
int i = 0;
int x = i++, y = ++i;
printf("%d % d\n", x, y);
return 0;
}Select an option to see the answer and solution.
Q237
Open questionSelect an option to see the answer and solution.
Q238
Open question#include<stdio.h>
int main()
{
int a = 1, b = 2, c = 3, d = 4, e;
e = c + d = b * a;
printf("%d, %d\n", e, d);
}Select an option to see the answer and solution.
Q239
Open questionb = (b / a);
a = a * b;
b = a / b;Select an option to see the answer and solution.
Q240
Open questionfloat 3Bedroom-Hall-Kitchen?;Select an option to see the answer and solution.