Trường Phan
New member
What is the output of the given statement?
A. 0
B. 2
C. Cheers
D. 3
Code:
* (setf cheers '(cheer cheer cheer))
* (setf loop-count 0)
* (loop (when (endp cheers) (return loop-count)) (setf cheers (rest cheers)) (setf loop-count (+ loop-count 1)))
B. 2
C. Cheers
D. 3