What will be the output of the following code?
class Demo {
static void Main(string[] args) {
int a = 3;
Site(ref a);
Console.WriteLine(The value of variable is + a);
}
public static void Site(ref int i) {
++i;
}
}
Reveal answer
Fill a bubble to check yourself