Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardSwiftARC internals retain releaseSingle-choice MCQ

In the snippet below, two strong references and one weak reference exist. After `strongA = nil; strongB = nil`, what sequence of count changes and structural events happens, in order?

final class Node {} var strongA: Node? = Node() var strongB: Node? = strongA weak var weakRef = strongA strongA = nil strongB = nil // weakRef read here