What will be the output of the following LISP statement? [code](write (print "better"))[/code]

What will be the output of the following LISP statement?
Code:
(write (print "better"))
A. “better””better”
B. “better”
C. error will occur
D. none of the mentioned
 
Answer: a
Explanation: In this statement the print primitive is nested in write. The print primitive will provide “better” as argument to write and give output “better””better”.
Output: “better””better”
 

Tìm kiếm

Back
Top