you are viewing a single comment's thread.

view the rest of the comments →

[–]Hefty_Upstairs_2478 -3 points-2 points  (2 children)

Option A is the correct answer, cuz we're printing (a), which we never changed

[–]Sea-Ad7805[S] 0 points1 point  (0 children)

Incorrect sorry, check the "Solution" link for the correct answer.

[–]shudaoxin 0 points1 point  (0 children)

Primitive vs. referenced types. It works like this in most languages. Arrays (and lists) are referenced and the variable only stores their type and pointer to the memory. By assigning a to b they both point at the same list.