C Programming :: Expressions
-
What will be the output of the program?
#includeint main() { int i=-3, j=2, k=0, m; m = ++i && ++j && ++k; printf("%d, %d, %d, %d\n", i, j, k, m); return 0; } -
Assuming, integer is 2 byte, What will be the output of the program?
#include int main() { printf("%x\n", -22); return 0; } -
What will be the output of the program?
#include int main() { int i=-3, j=2, k=0, m; m = ++i || ++j && ++k; printf("%d, %d, %d, %d\n", i, j, k, m); return 0; } -
What will be the output of the program?
#include int main() { int x=12, y=7, z; z = x!=4 || y == 2; printf("z=%d\n", z); return 0; } -
What will be the output of the program?
#include int main() { static int a[20]; int i = 0; a[i] = i ; printf("%d, %d, %d\n", a[0], a[1], i); return 0; } -
What will be the output of the program?
#include int main() { int i=4, j=-1, k=0, w, x, y, z; w = i || j || k; x = i && j && k; y = i || j &&k; z = i && j || k; printf("%d, %d, %d, %d\n", w, x, y, z); return 0; } -
What will be the output of the program?
#includeint main() { int i=-3, j=2, k=0, m; m = ++i && ++j || ++k; printf("%d, %d, %d, %d\n", i, j, k, m); return 0; } -
What will be the output of the program?
#include int main() { int x=4, y, z; y = --x; z = x--; printf("%d, %d, %d\n", x, y, z); return 0; } -
What will be the output of the program?
#includeint main() { int i=3; i = i++; printf("%d\n", i); return 0; } -
What will be the output of the program?
#include int main() { int a=100, b=200, c; c = (a == 100 || b > 200); printf("c=%d\n", c); return 0; }

Whatsapp
Facebook