................................................................................
ID: 3550252 • Letter: #
Question
................................................................................................................................................................
Use the linked list pictured below for Exercises 9 through 12. Give the values of the following expressions: Are the following expressions true or false? Decide whether the syntax of each of the following statements is valid or invalid. If it is valid, mark it OK; if it is invalid, explain what is wrong Write one statement to do each of the following: Make list Data point to the node containing 45. Make ptr 2 point to the last node in the list. Make list Data point to an empty list. Set the info member of the r.ode containing 45 to 60. Based on the following declarations, tell whether each statement below is syntactically legal (yes) or illegal (no)Explanation / Answer
9.a. 30
b. 90
c. 45
10.a. t
b. f
c. f
d. t
11. a. valid
b. invalid (casting pointer type to struct type)
c. invalid (casting pointer type to struct type)
d. invalid (casting pointer type to integer type)
e. valid
f. valid
12. a. listData = prt1->next
b. pt2 = NULL;
c. listData = NULL;
d. ptr1->next->info = 60;
18. a.y
b.n
c.n
d.y
e.n
f.y
g.y
h.n
i.y
j.y
k.y
l.n
m.n
n.y
o.n
any doubt mail me at ashishkguptaiit.cse@gmail.com. You are most welcome.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.