Skip to main content
🔮 Output PredictionC# C# / .NET Hard⚡+35 XP

Value vs Reference

What is x after this code?

C# / .NET
int x = 10;
void Change(int n) { n = 99; }
Change(x);
Console.WriteLine(x);

🔮 What is the output?