adplus-dvertising
frame-decoration

Question

What is the value of (cdr ‘(a b c d)) after following LISP statements?
(write (setf (cdr '(a b c d)) 2))
(write (cdr '(a b c d)))

a.

2

b.

B C D

c.

A

d.

A 2

Answer: (b).B C D

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the value of (cdr ‘(a b c d)) after following LISP statements?