fork(2) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. int n;
  8. try
  9. {
  10. // Do not initialize this variable here.
  11. n = 123;
  12. }
  13. catch
  14. {
  15. }
  16. // Error: Use of unassigned local variable 'n'.
  17. Console.Write(n);
  18. }
  19. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(17,21): error CS0165: Use of unassigned local variable `n'
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty