Web Log di Adrian Florea

"You know you've achieved perfection in design, not when you have nothing more to add, but when you have nothing more to take away." Antoine de Saint-Exupery
posts - 440, comments - 2715, trackbacks - 3944

My Links

Archives

Post Categories

Image Galleries

.RO Blogs

.RO People

.RO Sites

Blogs

Furls

Links

vinCitori

Quiz Sharp #31 (Nicu G. Fruja)

using System;

class Test
{
  static void Main()
  {
    int i;
    try
    {
      goto lab;
    }
    finally
    {
      i = 3;
    }
    lab: Console.WriteLine("i = {0}", i);
  }
}

Vi aspettate:

  • A. Dipende dalla versione del Framework
  • B. i = 3
  • C. Errore di compilazione ("Use of unassigned local variable 'i'")

Print | posted on lunedì 9 agosto 2004 18:23 | Filed Under [ Quiz Sharp ]

Powered by:
Powered By Subtext Powered By ASP.NET