What is the output of the given statement? [code]* (defun count-atoms (expression); (if (atom expression) 1 (+ (count-atoms (first

Đăng Khánh

New member
What is the output of the given statement?
Code:
* (defun count-atoms (expression);
  (if (atom expression)
  1
  (+ (count-atoms (first expression))
  (count-atoms (rest expression)))))
* (count-atoms '((this is)))
A. Count-atoms
B. 4
C. Count
D. None of the mentioned
 

Tìm kiếm

Back
Top