What is the output of the given statement? [code]* (defstruct person (gender nil) (personality 'nice)) * (setf person-instance-1 (make-person))

Quang Hiếu

New member
What is the output of the given statement?
Code:
* (defstruct person (gender nil) (personality 'nice))
* (setf person-instance-1 (make-person))
* (setf person-instance-2 (make-person :gender 'female))
* (setf (person-surname person-instance-1) 'winston)
A. Winston
B. Nil
C. T
D. Error
 

Tìm kiếm

Back
Top