Trần Thị Mai
New member
What is the output of the given statement?
A. 4
B. 5
C. 6
D. 7
Code:
* (defun count-atoms (expression);
(if (atom expression)
1
(+ (count-atoms (first expression))
(count-atoms (rest expression)))))
*(count-atoms '((this is) (a test)))
B. 5
C. 6
D. 7