On lynx, use down arrow to move to the next question or choice. Hit return to make your selection.
On lynx, use down arrow to move to the next question or choice. Hit return to make your selection.
In the following questions, no syntax errors have put in deliberately. (So, "there is a syntax error" is not the right answer and will receive no credit.) Please mark your final answer clearly. In order to receive partial credit, you must show your work.
#include <stdio.h> void xyzzy(int) ; int a = 3, b = 6, c = 9, d = 12 ; void xyzzy(int a) { int b ; b = a - 1 ; c = 2 * b + 12 ; d = b + c + 3 ; a = c - b ; printf("xyzzy: a = %d, b = %d, c = %d, d = %d\n", a, b, c, d) ; } main() { int b = 5, d = 10 ; printf("main: a = %d, b = %d, c = %d, d = %d\n", a, b, c, d) ; xyzzy(a) ; printf("main: a = %d, b = %d, c = %d, d = %d\n", a, b, c, d) ; }