using System; public class Test { public static void foo(ref int x) { x = 42; } public static void Main() { int answer; foo(ref answer); } }
1 2 10 42 11
prog.cs(13,17): error CS0165: Use of unassigned local variable `answer' Compilation failed: 1 error(s), 0 warnings
Standard output is empty