N Ngoc Hue New member Sep 21, 2021 #1 What is the output of the following statement? Code: * (setf meals '(breakfast lunch tea dinner)) * (cons (first meals) (last meals)) A. Breakfast B. Lunch C. Dinner D. Both Breakfast & Dinner
What is the output of the following statement? Code: * (setf meals '(breakfast lunch tea dinner)) * (cons (first meals) (last meals)) A. Breakfast B. Lunch C. Dinner D. Both Breakfast & Dinner
N Ngô Trường Vủ New member Sep 21, 2021 #2 Answer: d Explanation: The statement will print the first and last value of the list because of the condition. Output: (BREAKFAST DINNER) Upvote 0 Downvote
Answer: d Explanation: The statement will print the first and last value of the list because of the condition. Output: (BREAKFAST DINNER)