Q181
Open question#include <stdio.h> //Program 2
int main()
{
int d, a = 1, b = 2;
d = a++ +++b;
printf("%d %d %d", d, a, b);
}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
10/16
Page
Pick an option on a question to see the right answer and solution.
Q181
Open question#include <stdio.h> //Program 2
int main()
{
int d, a = 1, b = 2;
d = a++ +++b;
printf("%d %d %d", d, a, b);
}Select an option to see the answer and solution.
Q182
Open question#include <stdio.h>
int main()
{
signed char chr;
chr = 128;
printf("%d\n", chr);
return 0;
}Select an option to see the answer and solution.
Q183
Open question#include <stdio.h>
int main()
{
int x = 2, y = 0, l;
int z;
z = y = 1, l = x && y;
printf("%d\n", l);
return 0;
}Select an option to see the answer and solution.
Q184
Open questionSelect an option to see the answer and solution.
Q185
Open question#include <stdio.h>
int main()
{
int a = 10, b = 10;
if (a = 5)
b--;
printf("%d, %d", a, b--);
}Select an option to see the answer and solution.
Q186
Open question#include <stdio.h>
int main()
{
int i = 23;
char c = -23;
if (i < c)
printf("Yes\n");
else
printf("No\n");
}Select an option to see the answer and solution.
Q187
Open questionSelect an option to see the answer and solution.
Q188
Open question#include <stdio.h>
void main()
{
int b = 5 & 4 | 6;
printf("%d", b);
}Select an option to see the answer and solution.
Q189
Open question#include <stdio.h>
int main()
{
const int p;
p = 4;
printf("p is %d", p);
return 0;
}Select an option to see the answer and solution.
Q190
Open questionSelect an option to see the answer and solution.
Q191
Open questionSelect an option to see the answer and solution.
Q192
Open question#include <stdio.h>
void main()
{
int h = 8;
int b = 4 * 6 + 3 * 4 < 3 ? 4 : 3;
printf("%d\n", b);
}Select an option to see the answer and solution.
Q193
Open question#include <stdio.h>
void main()
{
int x = 0;
if (x = 0)
printf("Its zero\n");
else
printf("Its not zero\n");
}Select an option to see the answer and solution.
Q194
Open question#include <stdio.h>
void main()
{
int x = 4;
int *p = &x;
int *k = p++;
int r = p - k;
printf("%d", r);
}Select an option to see the answer and solution.
Q195
Open questionSelect an option to see the answer and solution.
Q196
Open question#include<stdio.h>
#include<string.h>
typedef struct employee
{
char name[50];
int salary;
} e1;
void main( )
{
printf("Enter Employee name");
scanf("%s",e1.name);
printf("\n%s",e1.name);
}Select an option to see the answer and solution.
Q197
Open question#include <stdio.h>
void main()
{
int x = 4;
int *p = &x;
int *k = p++;
int r = p - k;
printf("%d", r);
}Select an option to see the answer and solution.
Q198
Open question#include <stdio.h>
int main()
{
int a = -1, b = 4, c = 1, d;
d = ++a && ++b || ++c;
printf("%d, %d, %d, %d\n", a, b, c, d);
return 0;
}Select an option to see the answer and solution.
Q199
Open question#include <stdio.h>
int main()
{
unsigned int i = 23;
signed char c = -23;
if (i > c)
printf("Yes\n");
else if (i < c)
printf("No\n");
}Select an option to see the answer and solution.
Q200
Open question#include <stdio.h>
int main()
{
int x = 2;
x = x << 1;
printf("%d\n", x);
}Select an option to see the answer and solution.