a) <= b) << c) == d) += Answer: d
View Question
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int x = 0, y = 2;
int z = ~x & y;
printf(“%d\n”, z);
}
What will be the output of the following C code? #include <stdio.h> ...
View Question
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int x = 0, y = 2;
if (!x && y)
printf(“true\n”);
else
printf(“false\n”);
}
What will be the output of the following C code? #include <stdio.h> ...
View Question
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int x = 2, y = 0;
int z = x && y = 1;
printf(“%d\n”, z);
}
What will be the output of the following C code? #include <stdio.h> ...
View Question
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int x = 2, y = 2;
int z = x ^ y & 1;
printf(“%d\n”, z);
}
What will be the output of the following C code? #include <stdio.h> ...
View Question
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int x = 3;
const int *p = &x;
*p++;
printf(“%d\n”, *p);
}
What will be the output of the following C code? #include <stdio.h> ...
View Question
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int x = 3, y = 2;
int z = x << 1 > 5;
printf(“%d\n”, z);
}
What will be the output of the following C code? #include <stdio.h> ...
View Question
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int x = 3, y = 2;
int z = x /= y %= 2;
printf(“%d\n”, z);
}
What will be the output of the following C code? #include <stdio.h> ...
View Question
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int x = 1, y = 2;
int z = x & y == 2;
printf(“%d\n”, z);
}
What will be the output of the following C code? #include <stdio.h> ...
View Question
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int x = 1, y = 2;
if (x && y == 1)
printf(“true\n”);
else
printf(“false\n”);
}
What will be the output of the following C code? #include <stdio.h> ...
View Question