When are arguments to a deferred call evaluated?
Answer & explanation
Answer: When the defer statement executes
The call is deferred, but argument evaluation occurs when defer is encountered.
Practice defer with self-contained questions. Check your answer, then use the explanation to understand the reasoning.
Answer: When the defer statement executes
The call is deferred, but argument evaluation occurs when defer is encountered.