Question: Hello, here are some multiple choice questions for my intro to programming in c, and would like the help. int main(void) { int i =
Hello, here are some multiple choice questions for my intro to programming in c, and would like the help.






int main(void) { 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 (" w = %d x = %d y = %d z = %d", w, x, y, z); return 0; } 1111 1011 1010 O 1100 O 0000 int main() { int i = 4, z = 12; if (i = 5 && z>5) printf (" l am stmt1!"); else printf (" I am stmt2!"); return 0; } I am stmt1! O I am stmt2! O I am stmt1! I am stmt2! int main(void) { int i = 10, j = 20; if (i = 5 ) && if (j = 10) printf(" Have a nice day"); } Error. Condition should be if (i == 5 && j == 10). O No Error int main(void) { int i = 2, j = 5; if (i == 2 && j == 5) printf (" Inside if!"); return 0; } Error. Invalid comparison. No Error int main(void) { char spy = 'a', password = 'z'; if (spy == 'a' or password == 'Z') printf (" All the birds are safe in the nest"); } Error. 'or' cannot be used to combine conditions, use 11. O No Error int main(void) { int i = -4, j, num; j = (num
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
