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 #30 (Nicu G. Fruja)

using System;

class A
{
  public int x;
  static A(){}
}

class Test
{
  static void Main()
  {
    A a = null;
    int i = 0;
    a.x = a.x + 1/i;
  }
}

Vi aspettate:

  • A. System.NullReferenceException
  • B. System.DivideByZeroException
  • C. Errore di compilazione ("Division by constant zero")

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

Powered by:
Powered By Subtext Powered By ASP.NET