Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC#delegates Func ActionSingle-choice MCQ

What does this loop print, and which delegate concept explains it?

var actions = new List<Action>(); for (int i = 0; i < 3; i++) actions.Add(() => Console.Write(i + " ")); foreach (var a in actions) a();