What is the output of this C code?
#include <stdio.h>
int main()
{
int x = 1, y = 0, z = 5;
int a = x && y || z++;
printf("%d", z);
}
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int x = 1, y = 0, z = 5;
int a = x && y && z++;
printf("%d", z);
}
What is the output of this C code?
#include <stdio.h>
int main()
{
int x = 1, y = 0, z = 3;
x > y ? printf("%d", z) : return z;
}
Does logical operators in C language are evaluated with short circuit?
What is the output of this C code?
#include <stdio.h>
int main()
{
int a = 1, b = 1, d = 1;
printf("%d, %d, %d", ++a + ++a+a++, a++ + ++b, ++d + d++ + a++);
}
What is the output of this C code?
#include <stdio.h>
int main()
{
int a = 5, b = -7, c = 0, d;
d = ++a && ++b || ++c;
printf("%d %d %d %d", a, b, c, d);
}
1. What is the output of this C code?
#include <stdio.h>
int main()
{
int k = 8;
int x = 0 == 1 && k++;
printf("%d %d\n", x, k);
}
What is the output of this C code?
#include <stdio.h>
int main()
{
int x = 2, y = 0;
int z = y && (y |= 10);
printf("%d\n", z);
return 0;
}
What is the output of this C code?
#include <stdio.h>
int main()
{
int y = 2;
int z = y +(y = 10);
printf("%d\n", z);
}
What is the output of this C code?
#include <stdio.h>
int main()
{
double b = 3 && 5 & 4 % 3;
printf("%lf", b);
}