Sobes.tech
Intern — Senior

Predict the output of a simple C# snippet

livecode

Task condition

Determine what the program will display when executed.

int a = 1;
int b = a;
b = 2;
Console.WriteLine(a);