View the step-by-step solution to:

use following C declarations that are in effect:

Please help me by reviewing my answers and letting me know if they are correct.


use following C declarations that are in effect:

int a[] = {4, 12, 3, 10, 11, 16, 5, 13, -12, 7, 33, 14, 21, 65};

int b = 3;

int* p = &a[b];

int *q = p+2;

int *r = q-5;


i am struggling to find the value of the following expressions. if any expression is illegal please state ILLEGAL.

a. *a my answer: 4

b. *a+b my answer:7

c. *p my answer:10

d.*q my answer:16

e.*r my answer: 4

f.p-r my answer: 3

g.r-q my answer: -5

h.r[b] my answer: 10

i. r+b my answer: illegal

j. q[3] my answer: -12

k.p[5] my answer: -12

l.q[p-r] my answer: -12

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question