Values & References4 / 14
Up next

Passing a value type

// n is a copy; the caller keeps its value
void Double(int n) => n *= 2;

int x = 5;
Double(x);
Console.WriteLine(x);
What you're solving

the callee gets its own copy