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

Determine the value of *text, *(text+4), and *(text+8) for each of the following

ID: 3646758 • Letter: D

Question

Determine the value of *text, *(text+4), and *(text+8) for each of the following section of
code.

1. Assume that,
char *text;
char message[ ] = "the check is in the mail";
text = message;

Answer the following question:

a. The value of *text?
b. The value of *(text+4)?
c. The value of *(text+8)?

2. Assume that,

char *text;
char formal[ ] = {'T','h','e',' ','s','u','m','m','e','r',' ','i','s',' ','c','o','m','i','n','g',''};
text = &formal[0];

Answer the following question:

a. The value of *text?
b. The value of *(text+4)?
c. The value of *(text+8)?

3. Assume that,

char *text;
char more[] = "Happy Holidays";
text = &more[4];

Answer the following question:

a. The value of *text?
b. The value of *(text+4)?
c. The value of *(text+8)?

Explanation / Answer

1. (a) t (b) c (c) k 2. (a)T (b) s (c) e 3. (a) y (b) l (c) y

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote