Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

{Int x=30, *y, *z; y=&x; z=y; *y=(*z)++; z++; x++; print f(\"x=%d, y=%d, z=%d\ \

ID: 3843890 • Letter: #

Question

{Int x=30, *y, *z; y=&x; z=y; *y=(*z)++; z++; x++; print f("x=%d, y=%d, z=%d ", x, y, z); return 0;} A. x=32, y=500, z=500 B. x=31 y=504, z=508 C. x=32, y=500, z=504 D. x=31, y=500, z=504 What will be the output of the program? #include int main() {char str[20] = "Hello"; char *p = str; *p = M; print f("%s " str); return 0;} A. Mello B> Hello C. HMello D. MHello For a 10x10 two-dimensional int array a. if the base address of the first element is 1000 what is the address of the 4th element on the 3rd row? (Assuming each dement occupies 4 bytes). A 1096 B. 1092 C 1100 D 1132 int a(5)={11 22 33 44 55); int*p = a; which of the following is/are true? (choose all that apply) A. p = = 11 B. p = = &a;[0] C. *p = = 11 D. 11 = = p[0] E. a = = p What will be the output of the program? #include int main() {int a[5] = {3 1 15 20 25}; int i j m; i = ++a[1]; j = a[1] ++; m = a[1++];

Explanation / Answer

26) hello m

27) 1096

a 10x10 two-dimensional int array a,ifthe base adiness of the first element is 1000, what is address of the 4th element on the 3rd row

28) A and E are true

int a[5] (11,22,33 44,55); int p a;